diff --git a/src/program/program.py b/src/program/program.py index 3ae7aa9f..c5ca0a5f 100644 --- a/src/program/program.py +++ b/src/program/program.py @@ -244,7 +244,7 @@ def _reindex_ongoing(self) -> None: def _schedule_functions(self) -> None: """Schedule each service based on its update interval.""" scheduled_functions = { - self._reindex_ongoing: {"interval": 60 * 60 * 24}, + # self._reindex_ongoing: {"interval": 60 * 60 * 24}, self._retry_library: {"interval": 60 * 60 * 24}, log_cleaner: {"interval": 60 * 60}, vacuum_and_analyze_index_maintenance: {"interval": 60 * 60 * 24}, diff --git a/src/routers/secure/items.py b/src/routers/secure/items.py index c10149bf..da7ead7b 100644 --- a/src/routers/secure/items.py +++ b/src/routers/secure/items.py @@ -226,7 +226,7 @@ async def get_item(_: Request, id: str, use_tmdb_id: Optional[bool] = False) -> if use_tmdb_id: query = query.where(MediaItem.tmdb_id == id) else: - query = query.where(MediaItem.imdb_id == id) + query = query.where(MediaItem.id == id) item = session.execute(query).unique().scalar_one() except NoResultFound: raise HTTPException(status_code=404, detail="Item not found")