[BACKEND] More informative info logs
This commit is contained in:
parent
0f542ac4e5
commit
7dc0b45ce5
2 changed files with 10 additions and 6 deletions
|
|
@ -123,7 +123,7 @@ class YTDLP:
|
||||||
del copied_ytdl_options_overrides["download_archive"]
|
del copied_ytdl_options_overrides["download_archive"]
|
||||||
|
|
||||||
if num_tries < cls._EXTRACT_ENTRY_NUM_RETRIES:
|
if num_tries < cls._EXTRACT_ENTRY_NUM_RETRIES:
|
||||||
cls.logger.debug(
|
cls.logger.info(
|
||||||
"Failed to download entry. Retrying %d / %d",
|
"Failed to download entry. Retrying %d / %d",
|
||||||
num_tries,
|
num_tries,
|
||||||
cls._EXTRACT_ENTRY_NUM_RETRIES,
|
cls._EXTRACT_ENTRY_NUM_RETRIES,
|
||||||
|
|
@ -222,14 +222,18 @@ class YTDLP:
|
||||||
):
|
):
|
||||||
cls.extract_info(ytdl_options_overrides=ytdl_options_overrides, **kwargs)
|
cls.extract_info(ytdl_options_overrides=ytdl_options_overrides, **kwargs)
|
||||||
except RejectedVideoReached:
|
except RejectedVideoReached:
|
||||||
cls.logger.debug(
|
cls.logger.info(
|
||||||
"RejectedVideoReached, stopping additional downloads "
|
"RejectedVideoReached, stopping additional downloads "
|
||||||
"(Can be disable by setting `date_range.breaking` to False)."
|
"(Can be disable by setting `date_range.breaks` to False. "
|
||||||
|
"If this is unexpected, "
|
||||||
|
"run with --log-level verbose to see the yt-dlp logs on why it stopped."
|
||||||
)
|
)
|
||||||
except ExistingVideoReached:
|
except ExistingVideoReached:
|
||||||
cls.logger.debug(
|
cls.logger.info(
|
||||||
"ExistingVideoReached, stopping additional downloads. "
|
"ExistingVideoReached, stopping additional downloads. "
|
||||||
"(Can be disable by setting `ytdl_options.break_on_existing` to False)."
|
"(Can be disable by setting `ytdl_options.break_on_existing` to False)."
|
||||||
|
"If this is unexpected, "
|
||||||
|
"run with --log-level verbose to see the yt-dlp logs on why it stopped."
|
||||||
)
|
)
|
||||||
except MaxDownloadsReached:
|
except MaxDownloadsReached:
|
||||||
cls.logger.info("MaxDownloadsReached, stopping additional downloads.")
|
cls.logger.info("MaxDownloadsReached, stopping additional downloads.")
|
||||||
|
|
@ -247,7 +251,7 @@ class YTDLP:
|
||||||
if uploader_id in entry_ids or not (uploader_url := entry_dict.get("uploader_url")):
|
if uploader_id in entry_ids or not (uploader_url := entry_dict.get("uploader_url")):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cls.logger.debug("Attempting to get parent metadata from URL %s", uploader_url)
|
cls.logger.info("Attempting to get parent metadata from URL %s", uploader_url)
|
||||||
parent_dict: Optional[Dict] = None
|
parent_dict: Optional[Dict] = None
|
||||||
try:
|
try:
|
||||||
parent_dict = cls.extract_info(
|
parent_dict = cls.extract_info(
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@ class SubtitlesPlugin(Plugin[SubtitleOptions]):
|
||||||
"""
|
"""
|
||||||
requested_subtitles = entry.get(v.requested_subtitles, expected_type=dict)
|
requested_subtitles = entry.get(v.requested_subtitles, expected_type=dict)
|
||||||
if not requested_subtitles:
|
if not requested_subtitles:
|
||||||
logger.debug("subtitles not found for %s", entry.title)
|
logger.info("subtitles not found for %s", entry.title)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
file_metadata: Optional[FileMetadata] = None
|
file_metadata: Optional[FileMetadata] = None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue