mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 04:10:23 +00:00
[viki] Fix subtitles extraction
This commit is contained in:
parent
07e4035879
commit
94ccb6fa2e
@ -91,7 +91,7 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user