add debug
This commit is contained in:
parent
caca298b52
commit
147374f554
1 changed files with 3 additions and 2 deletions
|
@ -409,13 +409,14 @@ class GetYoutubeVideos:
|
||||||
ydl_opts['format'] = 'bestvideo+bestaudio[ext=m4a]/best'
|
ydl_opts['format'] = 'bestvideo+bestaudio[ext=m4a]/best'
|
||||||
result = 'retrying (format error)'
|
result = 'retrying (format error)'
|
||||||
elif 'Unable to download video subtitles for' in f"{error}":
|
elif 'Unable to download video subtitles for' in f"{error}":
|
||||||
|
regex = r"Unable to download video subtitles for '([a-z]*)'"
|
||||||
subtitle_match = re.match(
|
subtitle_match = re.match(
|
||||||
r"Unable to download video subtitles for '([a-z]*)'",
|
regex,
|
||||||
f"{error}"
|
f"{error}"
|
||||||
)
|
)
|
||||||
if not subtitle_match:
|
if not subtitle_match:
|
||||||
self._log.error(
|
self._log.error(
|
||||||
f"Error finding subtitle that failed in error string"
|
f"Error finding subtitle that failed in error string. Regex: r\"{regex}\". Error string: \"{error}\""
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
ydl_opts['subtitleslangs'].pop(subtitle_match.group(1))
|
ydl_opts['subtitleslangs'].pop(subtitle_match.group(1))
|
||||||
|
|
Loading…
Reference in a new issue