[dotsub] Fix extraction
authorSergey M․ <dstftw@gmail.com>
Fri, 24 Apr 2015 15:47:13 +0000 (21:47 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 24 Apr 2015 15:47:13 +0000 (21:47 +0600)
youtube_dl/extractor/dotsub.py

index f51d88a986b79d65cae3c1604ee3d16e9515c0fd..e9ca236d4a03c13b1b29b3386535c4262332dab0 100644 (file)
@@ -36,7 +36,8 @@ class DotsubIE(InfoExtractor):
         if not video_url:
             webpage = self._download_webpage(url, video_id)
             video_url = self._search_regex(
-                r'"file"\s*:\s*\'([^\']+)', webpage, 'video url')
+                [r'<source[^>]+src="([^"]+)"', r'"file"\s*:\s*\'([^\']+)'],
+                webpage, 'video url')
 
         return {
             'id': video_id,