This commit is contained in:
Antonio J. Delgado 2025-08-10 12:11:10 +03:00
parent fce2c98bec
commit 01c5e8bbd6

View file

@ -419,6 +419,9 @@ class GetYoutubeVideos:
f"Error finding subtitle that failed in error string. Regex: r\"{regex}\". Error string: \"{error}\""
)
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))
result = 'retrying (subtitles error)'
else: