mirror of
https://gitlab.com/ytdl-org/youtube-dl.git
synced 2025-11-05 08:57:06 -05:00
[viki] Fix subtitles extraction
This commit is contained in:
@@ -91,7 +91,7 @@ class VikiIE(SubtitlesInfoExtractor):
|
|||||||
|
|
||||||
def _get_available_subtitles(self, video_id, info_webpage):
|
def _get_available_subtitles(self, video_id, info_webpage):
|
||||||
res = {}
|
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)
|
m = re.search(r'/(?P<lang>[a-z]+)\.vtt', sturl)
|
||||||
if not m:
|
if not m:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user