diff --git a/get_youtube_videos/get_youtube_videos.py b/get_youtube_videos/get_youtube_videos.py index 6115347..29b504e 100644 --- a/get_youtube_videos/get_youtube_videos.py +++ b/get_youtube_videos/get_youtube_videos.py @@ -410,7 +410,7 @@ class GetYoutubeVideos: result = 'retrying (format error)' elif 'Unable to download video subtitles for' in f"{error}": subtitle_match = re.match( - r"Unable to download video subtitles for '([a-z]*)' ", + r"Unable to download video subtitles for '([a-z]*)':", f"{error}" ) if not subtitle_match: