From 47311864cf7c4461b052c10509abf2710be5c900 Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Sat, 25 Oct 2025 12:22:12 -0400 Subject: [PATCH] disable: remove season.nfo and tvshow.nfo from being created --- processors/tv_processor.py | 28 +++++++++++------------ processors/tv_series_processor.py | 37 ++++++++++++++++--------------- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/processors/tv_processor.py b/processors/tv_processor.py index a3f3ac3..957f7c6 100644 --- a/processors/tv_processor.py +++ b/processors/tv_processor.py @@ -825,20 +825,20 @@ 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) + # DISABLED: Skip creating season.nfo and tvshow.nfo files (user only wants episode NFOs) + # 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) _log("INFO", f"Completed targeted processing: {episodes_processed}/{len(webhook_episodes)} episodes processed") diff --git a/processors/tv_series_processor.py b/processors/tv_series_processor.py index c30189a..a3e01ec 100644 --- a/processors/tv_series_processor.py +++ b/processors/tv_series_processor.py @@ -371,21 +371,22 @@ class TVSeriesProcessor: return None, "no_external_data" def _create_series_nfos(self, series_path: Path, imdb_id: str): - """Create tvshow.nfo and season.nfo files only if they don't exist""" - # Create tvshow.nfo only if it doesn't exist - tvshow_nfo = series_path / "tvshow.nfo" - if not tvshow_nfo.exists(): - self.nfo_manager.create_tvshow_nfo(series_path, imdb_id) - else: - _log("DEBUG", f"Skipping tvshow.nfo creation - already exists: {tvshow_nfo}") - - # Create season.nfo for each season directory only if they don't exist - for season_dir in series_path.iterdir(): - if season_dir.is_dir() and self._is_season_directory(season_dir.name): - season_num = self._extract_season_number(season_dir.name) - if season_num is not None: - season_nfo = season_dir / "season.nfo" - if not season_nfo.exists(): - self.nfo_manager.create_season_nfo(season_dir, season_num) - else: - _log("DEBUG", f"Skipping season.nfo creation - already exists: {season_nfo}") \ No newline at end of file + """DISABLED: Skip creating tvshow.nfo and season.nfo files (user only wants episode NFOs)""" + # # Create tvshow.nfo only if it doesn't exist + # tvshow_nfo = series_path / "tvshow.nfo" + # if not tvshow_nfo.exists(): + # self.nfo_manager.create_tvshow_nfo(series_path, imdb_id) + # else: + # _log("DEBUG", f"Skipping tvshow.nfo creation - already exists: {tvshow_nfo}") + # + # # Create season.nfo for each season directory only if they don't exist + # for season_dir in series_path.iterdir(): + # if season_dir.is_dir() and self._is_season_directory(season_dir.name): + # season_num = self._extract_season_number(season_dir.name) + # if season_num is not None: + # season_nfo = season_dir / "season.nfo" + # if not season_nfo.exists(): + # self.nfo_manager.create_season_nfo(season_dir, season_num) + # else: + # _log("DEBUG", f"Skipping season.nfo creation - already exists: {season_nfo}") + pass # Function disabled - only process episode NFOs \ No newline at end of file