fix: Remove nfo_migration_required source and ensure proper date lookup
Local Docker Build (Dev) / build-dev (push) Successful in 49s

- Remove bogus 'nfo_migration_required' source that bypassed proper date lookup
- Ensure episodes with existing NFOs still get processed through Sonarr API
- Episodes should get proper dateadded from Sonarr import history or airdate fallback
- Version bump to 1.9.3-longnames
This commit is contained in:
2025-09-26 10:11:52 -04:00
parent 9bc8955ad4
commit 9b0da8b6ed
2 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
1.9.2-longnames
1.9.3-longnames
+11 -5
View File
@@ -449,19 +449,25 @@ class TVProcessor:
existing_nfo = self.nfo_manager.find_existing_episode_nfo(season_dir, season_num, episode_num)
if existing_nfo:
# Force processing of this episode for NFO migration
episode_dates[(season_num, episode_num)] = (None, None, "nfo_migration_required")
# Force processing of this episode to ensure proper dates
nfo_episodes_found += 1
if nfo_episodes_found > 0:
_log("INFO", f"Found {nfo_episodes_found} episodes with existing NFO files requiring migration")
_log("INFO", f"Found {nfo_episodes_found} episodes with existing NFO files")
# Find missing episodes (not in cache and no existing NFO)
# Find missing episodes (not in cache)
cached_keys = set(episode_dates.keys())
missing_keys = set(disk_episodes.keys()) - cached_keys
# Add episodes with existing NFOs to missing_keys so they get proper date lookup
for season_num, episode_num in disk_episodes.keys():
if (season_num, episode_num) not in cached_keys:
season_dir = series_path / config.tv_season_dir_format.format(season=season_num)
existing_nfo = self.nfo_manager.find_existing_episode_nfo(season_dir, season_num, episode_num)
if existing_nfo:
missing_keys.add((season_num, episode_num))
if not missing_keys:
if nfo_episodes_found == 0:
_log("INFO", "All episodes found in cache")
return episode_dates