From: Sergey M․ Date: Tue, 17 Mar 2015 18:05:40 +0000 (+0600) Subject: [generic] Generalize redirect regex X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=ed9a25dd612fb06d9cf007a6491ac9982535a8f9;p=youtube-dl.git [generic] Generalize redirect regex --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 0b8d96c27..dc5755d12 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1268,16 +1268,16 @@ class GenericIE(InfoExtractor): # HTML5 video found = re.findall(r'(?s).*?]*)?\s+src=["\'](.*?)["\']', webpage) if not found: + REDIRECT_REGEX = r'[0-9]{,2};\s*(?:URL|url)=\'?([^\'"]+)' found = re.search( r'(?i)