1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 22:52:55 +08:00

[viki] Fix subtitles extraction

This commit is contained in:
Philipp Hagemeister 2013-11-25 05:58:04 +01:00
parent 07e4035879
commit 94ccb6fa2e

View 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