Skip to content

Commit

Permalink
UPD: trailer download - do not log skipped titles
Browse files Browse the repository at this point in the history
  • Loading branch information
nandyalu committed Dec 13, 2024
1 parent fb2fc99 commit 13377b0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions backend/core/tasks/download_trailers.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@ def _download_missing_media_trailers(is_movie: bool):
)
for skip_reason in skipped_titles:
skip_titles = skipped_titles[skip_reason]
if len(skip_titles) > 0:
all_titles = ", ".join(skip_titles)
else:
all_titles = "None"
# if len(skip_titles) > 0:
# all_titles = ", ".join(skip_titles)
# else:
# all_titles = "None"
skip_reason = skip_reason.replace("_", " ")
logger.debug(f"Skipped {len(skip_titles)} titles - {skip_reason}: {all_titles}")
logger.debug(f"Skipped {len(skip_titles)} titles - {skip_reason}")
# logger.debug(f"Skipped {len(skip_titles)} titles - {skip_reason}: {all_titles}")

if not media_trailer_list:
logger.info(f"No missing {media_type} trailers to download")
Expand Down

0 comments on commit 13377b0

Please sign in to comment.