add log
This commit is contained in:
parent
fce2c98bec
commit
01c5e8bbd6
1 changed files with 3 additions and 0 deletions
|
@ -419,6 +419,9 @@ class GetYoutubeVideos:
|
||||||
f"Error finding subtitle that failed in error string. Regex: r\"{regex}\". Error string: \"{error}\""
|
f"Error finding subtitle that failed in error string. Regex: r\"{regex}\". Error string: \"{error}\""
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
self._log.warning(
|
||||||
|
f"The language '{subtitle_match.group(1)}' is not available, removing from list: {', '.join(ydl_opts['subtitleslangs'])}"
|
||||||
|
)
|
||||||
ydl_opts['subtitleslangs'].remove(subtitle_match.group(1))
|
ydl_opts['subtitleslangs'].remove(subtitle_match.group(1))
|
||||||
result = 'retrying (subtitles error)'
|
result = 'retrying (subtitles error)'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue