fix: airdates again
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
2025-10-15 20:58:26 -04:00
parent 4ea202cca2
commit 857d423ae4
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -211,11 +211,15 @@ class TVProcessor:
# Fallback to external sources if needed
if not aired:
_log("DEBUG", f"S{season:02d}E{episode:02d}: No aired date from Sonarr, trying external APIs for {imdb_id}")
external_aired = self.external_clients.get_episode_air_date(imdb_id, season, episode)
if external_aired:
aired = external_aired
if not dateadded:
source = "external"
_log("INFO", f"S{season:02d}E{episode:02d}: Found aired date from external APIs: {aired}")
else:
_log("WARNING", f"S{season:02d}E{episode:02d}: No aired date found from external APIs for {imdb_id}")
# Use air date as fallback for dateadded if no import date found
if not dateadded and aired and source != "sonarr:history.import":