web: trying to fix date look up
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-15 11:02:32 -04:00
parent 068507adce
commit 9850dc596a
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
2.2.7 2.2.8
+13
View File
@@ -850,9 +850,21 @@ async def get_episode_date_options(dependencies: dict, imdb_id: str, season: int
if not series_data: if not series_data:
print(f"🔍 DEBUG: IMDb lookup failed, trying direct series lookup") print(f"🔍 DEBUG: IMDb lookup failed, trying direct series lookup")
try: 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) series_data = tv_processor.sonarr.series_by_imdb_direct(imdb_id)
except Exception as e: except Exception as e:
print(f"⚠️ Direct series lookup also failed: {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}") print(f"🔍 DEBUG: Series data found: {series_data is not None}")
if series_data: 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 # 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"}) 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 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"): if tv_find_result and tv_find_result.get("tv_results"):
tv_results = tv_find_result.get("tv_results", []) tv_results = tv_find_result.get("tv_results", [])