fix remove

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

View file

@ -419,7 +419,7 @@ class GetYoutubeVideos:
f"Error finding subtitle that failed in error string. Regex: r\"{regex}\". Error string: \"{error}\""
)
else:
ydl_opts['subtitleslangs'].pop(subtitle_match.group(1))
ydl_opts['subtitleslangs'].remove(subtitle_match.group(1))
result = 'retrying (subtitles error)'
else:
self._log.error(