[openload] Fix extraction (closes #9472)
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 13 May 2016 10:11:08 +0000 (18:11 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 13 May 2016 10:11:08 +0000 (18:11 +0800)
youtube_dl/extractor/openload.py

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