aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/viki.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-11-25 06:06:18 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-11-25 06:06:18 +0100
commitde79c46c8fa86dd3cb2383fd46cdd19a48e2f81f (patch)
tree7cd2f0e8100ba7fa68414df4764447a789b5685a /youtube_dl/extractor/viki.py
parent94ccb6fa2e3ec014bb995d05bfe634cf986d6198 (diff)
[viki] Fix subtitle extraction
Diffstat (limited to 'youtube_dl/extractor/viki.py')
-rw-r--r--youtube_dl/extractor/viki.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/viki.py b/youtube_dl/extractor/viki.py
index ac199d410..2206a06d5 100644
--- a/youtube_dl/extractor/viki.py
+++ b/youtube_dl/extractor/viki.py
@@ -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