1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-22 01:12:59 +08:00

[dramafever] Fix subtitles extraction (Closes #8049)

This commit is contained in:
Sergey M․ 2015-12-30 00:13:00 +06:00
parent ff18735cb2
commit 453fe2a345

View File

@ -108,7 +108,7 @@ class DramaFeverIE(DramaFeverBaseIE):
if value:
subfile = value[0].get('subfile') or value[0].get('new_subfile')
if subfile and subfile != 'http://www.dramafever.com/st/':
info['subtitiles'].setdefault('English', []).append({
info.setdefault('subtitles', {}).setdefault('English', []).append({
'ext': 'srt',
'url': subfile,
})