From ce1a599fd9adde382468d285a13e411b37ca0690 Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Fri, 26 Sep 2025 17:07:12 -0400 Subject: [PATCH] stop tvshow.nfo and show.nfo --- VERSION | 2 +- nfoguard.py | 38 ++++++-------------------------------- 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/VERSION b/VERSION index a741eeb..b663c74 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.4-preserve-long-nfo-title-fallback \ No newline at end of file +2.1.5-preserve-long-nfo-episodes-only \ No newline at end of file diff --git a/nfoguard.py b/nfoguard.py index f68d21a..9ffb8f6 100644 --- a/nfoguard.py +++ b/nfoguard.py @@ -380,18 +380,8 @@ class TVProcessor: # Save to database self.db.upsert_episode_date(imdb_id, season, episode, aired, dateadded, source, True) - # Create season/tvshow NFOs - if config.manage_nfo: - seasons_processed = set() - for (season, episode) in disk_episodes.keys(): - if season not in seasons_processed: - season_dir = series_path / config.tv_season_dir_format.format(season=season) - self.nfo_manager.create_season_nfo(season_dir, season) - seasons_processed.add(season) - - # Get TVDB ID for better Emby compatibility - tvdb_id = self.external_clients.get_tvdb_series_id(imdb_id) - self.nfo_manager.create_tvshow_nfo(series_path, imdb_id, tvdb_id) + # Skip season.nfo and tvshow.nfo creation - focus only on episode NFOs + pass _log("INFO", f"Completed processing TV series: {series_path.name}") @@ -600,12 +590,8 @@ class TVProcessor: # Save to database self.db.upsert_episode_date(imdb_id, season, episode, aired, dateadded, source, True) - # Create season NFO - if config.manage_nfo: - self.nfo_manager.create_season_nfo(season_path, season_num) - # Get TVDB ID for better Emby compatibility - tvdb_id = self.external_clients.get_tvdb_series_id(imdb_id) - self.nfo_manager.create_tvshow_nfo(series_path, imdb_id, tvdb_id) + # Skip season.nfo and tvshow.nfo creation - focus only on episode NFOs + pass _log("INFO", f"Completed processing season {season_num}") @@ -919,20 +905,8 @@ class TVProcessor: episodes_processed += 1 - # Create season/tvshow NFOs if any episodes were processed - if episodes_processed > 0 and config.manage_nfo: - seasons_processed = set() - for webhook_episode in webhook_episodes: - season_num = webhook_episode.get("seasonNumber") - if season_num and season_num not in seasons_processed: - season_dir = series_path / config.tv_season_dir_format.format(season=season_num) - if season_dir.exists(): - self.nfo_manager.create_season_nfo(season_dir, season_num) - seasons_processed.add(season_num) - - # Get TVDB ID for better Emby compatibility - tvdb_id = self.external_clients.get_tvdb_series_id(imdb_id) - self.nfo_manager.create_tvshow_nfo(series_path, imdb_id, tvdb_id) + # Skip season.nfo and tvshow.nfo creation - focus only on episode NFOs + pass _log("INFO", f"Completed targeted processing: {episodes_processed}/{len(webhook_episodes)} episodes processed")