From dae8fd80ed0440f683eb4dd300fe5c5c408ce3bb Mon Sep 17 00:00:00 2001 From: ping Date: Tue, 27 Sep 2016 16:26:16 +0800 Subject: [PATCH] Make subtitle ext based on sub link --- youtube_dl/extractor/ondemandkorea.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/ondemandkorea.py b/youtube_dl/extractor/ondemandkorea.py index 10c5fd0b8..125c310c8 100644 --- a/youtube_dl/extractor/ondemandkorea.py +++ b/youtube_dl/extractor/ondemandkorea.py @@ -47,7 +47,7 @@ class OnDemandKoreaIE(InfoExtractor): subs = re.findall(r'file:\s\'(?P[^\']+\.vtt)\',\s+label:\s+\'(?P[^\']+)\'', webpage) subtitles = {} for sub in subs: - subtitles[sub[1]] = [{'url': 'http://www.ondemandkorea.com' + sub[0], 'ext': 'vtt'}] + subtitles[sub[1]] = [{'url': 'http://www.ondemandkorea.com' + sub[0], 'ext': sub[0][-3:]}] return { 'id': video_id,