diff --git a/get_youtube_videos/get_youtube_videos.py b/get_youtube_videos/get_youtube_videos.py index d368434..d3d67b9 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}": regex = r"Unable to download video subtitles for '([a-z]*)'" - subtitle_match = re.match( + subtitle_match = re.search( regex, f"{error}" )