This commit is contained in:
@@ -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", [])
|
||||
|
||||
Reference in New Issue
Block a user