Update media_manager/tv/service.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Maximilian Dorninger
2025-12-07 22:44:43 +01:00
committed by GitHub
parent fd457049af
commit d680099a0b

View File

@@ -872,7 +872,12 @@ class TvService:
self.tv_repository.add_season_file(season_file=season_file)
new_source_path = source_directory.parent / ("." + source_directory.name)
source_directory.rename(new_source_path)
try:
source_directory.rename(new_source_path)
except Exception as e:
log.error(
f"Failed to rename {source_directory} to {new_source_path}: {e}"
)
def auto_download_all_approved_season_requests() -> None: