[openload] Fix extraction. Thanks @perron375 for the solution
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 9 Jun 2016 11:00:13 +0000 (19:00 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 9 Jun 2016 11:00:13 +0000 (19:00 +0800)
Closes #9706

youtube_dl/extractor/openload.py

index 5049b870ed198f3ce4f702c07efe98559d453ef2..1b57462b5072c36c2d6bd52c93146a78e1eb4ec2 100644 (file)
@@ -100,7 +100,7 @@ class OpenloadIE(InfoExtractor):
             raise ExtractorError('File not found', expected=True)
 
         code = self._search_regex(
-            r'</video>\s*</div>\s*<script[^>]+>([^<]+)</script>',
+            r'</video>\s*</div>\s*<script[^>]+>[^>]+</script>\s*<script[^>]+>([^<]+)</script>',
             webpage, 'JS code')
 
         decoded = self.openload_decode(code)