From 9850dc596a2b40be98b02c1abe9e24c2e39614ae Mon Sep 17 00:00:00 2001 From: sbcrumb Date: Wed, 15 Oct 2025 11:02:32 -0400 Subject: [PATCH] web: trying to fix date look up --- VERSION | 2 +- api/web_routes.py | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 5bc1cc4..23a63f5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.7 +2.2.8 diff --git a/api/web_routes.py b/api/web_routes.py index c5fce59..5718311 100644 --- a/api/web_routes.py +++ b/api/web_routes.py @@ -850,9 +850,21 @@ async def get_episode_date_options(dependencies: dict, imdb_id: str, season: int if not series_data: print(f"🔍 DEBUG: IMDb lookup failed, trying direct series lookup") try: + # Let's also debug what series are available + all_series = tv_processor.sonarr.get_all_series() + print(f"🔍 DEBUG: Found {len(all_series)} total series in Sonarr") + + # Look for Lincoln Lawyer specifically + lincoln_series = [s for s in all_series if 'lincoln' in s.get('title', '').lower()] + print(f"🔍 DEBUG: Lincoln Lawyer series found: {len(lincoln_series)}") + for ls in lincoln_series: + print(f" - Title: '{ls.get('title')}', IMDb: '{ls.get('imdbId')}', ID: {ls.get('id')}") + series_data = tv_processor.sonarr.series_by_imdb_direct(imdb_id) except Exception as e: print(f"⚠️ Direct series lookup also failed: {e}") + import traceback + print(f" Traceback: {traceback.format_exc()}") print(f"🔍 DEBUG: Series data found: {series_data is not None}") if series_data: @@ -907,6 +919,7 @@ async def get_episode_date_options(dependencies: dict, imdb_id: str, season: int # Get TMDB TV series ID from IMDb ID using find endpoint tv_find_result = external_clients.tmdb._get(f"/find/{imdb_id}", {"external_source": "imdb_id"}) print(f"🔍 DEBUG: TMDB find result: {tv_find_result is not None}") + print(f"🔍 DEBUG: TMDB raw response: {tv_find_result}") if tv_find_result and tv_find_result.get("tv_results"): tv_results = tv_find_result.get("tv_results", [])