mirror of
https://github.com/l1ving/youtube-dl
synced 2026-06-05 06:13:38 +08:00
Make subtitle ext based on sub link
This commit is contained in:
@@ -47,7 +47,7 @@ class OnDemandKoreaIE(InfoExtractor):
|
||||
subs = re.findall(r'file:\s\'(?P<file>[^\']+\.vtt)\',\s+label:\s+\'(?P<lang>[^\']+)\'', 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,
|
||||
|
||||
Reference in New Issue
Block a user