This commit is contained in:
+3
-3
@@ -980,8 +980,8 @@ async def get_episode_date_options(dependencies: dict, imdb_id: str, season: int
|
|||||||
episodes = external_clients.tmdb.get_tv_season_episodes(tmdb_id, season)
|
episodes = external_clients.tmdb.get_tv_season_episodes(tmdb_id, season)
|
||||||
print(f"🔍 DEBUG: TMDB episodes found: {episodes}")
|
print(f"🔍 DEBUG: TMDB episodes found: {episodes}")
|
||||||
|
|
||||||
if episode in episodes:
|
if int(episode) in episodes:
|
||||||
air_date = episodes[episode]
|
air_date = episodes[int(episode)]
|
||||||
print(f"🔍 DEBUG: TMDB air date for S{season:02d}E{episode:02d}: {air_date}")
|
print(f"🔍 DEBUG: TMDB air date for S{season:02d}E{episode:02d}: {air_date}")
|
||||||
|
|
||||||
if air_date:
|
if air_date:
|
||||||
@@ -1008,7 +1008,7 @@ async def get_episode_date_options(dependencies: dict, imdb_id: str, season: int
|
|||||||
})
|
})
|
||||||
print(f"✅ Added 'Use Air Date' option from TMDB: {air_date}")
|
print(f"✅ Added 'Use Air Date' option from TMDB: {air_date}")
|
||||||
else:
|
else:
|
||||||
print(f"❌ Episode {episode} not found in TMDB season {season} data")
|
print(f"❌ Episode {int(episode)} not found in TMDB season {season} data")
|
||||||
else:
|
else:
|
||||||
print(f"❌ No TV series ID found in TMDB for {imdb_id}")
|
print(f"❌ No TV series ID found in TMDB for {imdb_id}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ class SonarrClient:
|
|||||||
_log("WARNING", f"No import events, using grab date: {earliest_grab['date']} for episode {episode_id}")
|
_log("WARNING", f"No import events, using grab date: {earliest_grab['date']} for episode {episode_id}")
|
||||||
return earliest_grab["date"]
|
return earliest_grab["date"]
|
||||||
|
|
||||||
_log("WARNING", f"No reliable import events found for episode {episode_id}")
|
_log("WARNING", f"No reliable import events found for episode {episode_id} - should use air date instead")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user