logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: d0246d07f1e2f0c81bde051ac10db287b3e5e44b
parent 727a98c3ee98c5112462415bb1abcab227373268
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Tue, 16 Sep 2014 23:35:08 +0200

Merge remote-tracking branch 'origin/master'

Diffstat:

Myoutube_dl/extractor/generic.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py @@ -877,7 +877,7 @@ class GenericIE(InfoExtractor): if not found: found = re.search( r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")' - r'(?:[a-z-]+="[^"]+"\s+)*?content="[0-9]{,2};url=\'([^\']+)\'"', + r'(?:[a-z-]+="[^"]+"\s+)*?content="[0-9]{,2};url=\'?([^\'"]+)', webpage) if found: new_url = found.group(1)