[generic] Fix redirect
authorSergey M․ <dstftw@gmail.com>
Fri, 16 May 2014 13:32:53 +0000 (20:32 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 16 May 2014 13:32:53 +0000 (20:32 +0700)
youtube_dl/extractor/generic.py

index 1ae55dc5a2afc32cd0f60b74a38c9ee2724ab860..2861332826b5f20cdf0493edfdba8a7a12f357a8 100644 (file)
@@ -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)