logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 426b52fc5d503114f3aedc257a144b2e78c6b16c
parent 5c30b2684620357a9481e59087a1209f685e9305
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Fri, 16 May 2014 15:52:01 +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 @@ -672,7 +672,7 @@ class GenericIE(InfoExtractor): # HTML5 video found = re.findall(r'(?s)<video[^<]*(?:>.*?<source.*?)? src="([^"]+)"', webpage) if not found: - found = re.findall( + found = re.search( r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")' r'(?:[a-z-]+="[^"]+"\s+)*?content="[0-9]{,2};url=\'([^\']+)\'"', webpage)