diff --git a/get_youtube_videos/get_youtube_videos.py b/get_youtube_videos/get_youtube_videos.py index 8c68361..ff0187c 100644 --- a/get_youtube_videos/get_youtube_videos.py +++ b/get_youtube_videos/get_youtube_videos.py @@ -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: