]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[viki] Fix subtitles extraction
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 25 Nov 2013 04:58:04 +0000 (05:58 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 25 Nov 2013 04:58:04 +0000 (05:58 +0100)
youtube_dl/extractor/viki.py

index 20e8bbf7ee1a6c7d97fd45fa0ce706a1a71615f7..ac199d4109fd30f55e0db7283a1c51e96261abf4 100644 (file)
@@ -91,7 +91,7 @@ class VikiIE(SubtitlesInfoExtractor):
 
     def _get_available_subtitles(self, video_id, info_webpage):
         res = {}
-        for sturl in re.findall(r'<track src="([^"]+)"/>'):
+        for sturl in re.findall(r'<track src="([^"]+)"/>', info_webpage):
             m = re.search(r'/(?P<lang>[a-z]+)\.vtt', sturl)
             if not m:
                 continue