[viki] Fix subtitle extraction
This commit is contained in:
parent
94ccb6fa2e
commit
de79c46c8f
2 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@ import re
|
|||
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
unescapeHTML,
|
||||
unified_strdate,
|
||||
)
|
||||
from .subtitles import SubtitlesInfoExtractor
|
||||
|
@ -91,7 +92,8 @@ class VikiIE(SubtitlesInfoExtractor):
|
|||
|
||||
def _get_available_subtitles(self, video_id, info_webpage):
|
||||
res = {}
|
||||
for sturl in re.findall(r'<track src="([^"]+)"/>', info_webpage):
|
||||
for sturl_html in re.findall(r'<track src="([^"]+)"/>', info_webpage):
|
||||
sturl = unescapeHTML(sturl_html)
|
||||
m = re.search(r'/(?P<lang>[a-z]+)\.vtt', sturl)
|
||||
if not m:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue