mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-15 15:52:38 +00:00
[dramafever] Fix subtitles extraction (Closes #8049)
This commit is contained in:
parent
ff18735cb2
commit
453fe2a345
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class DramaFeverIE(DramaFeverBaseIE):
|
||||||
if value:
|
if value:
|
||||||
subfile = value[0].get('subfile') or value[0].get('new_subfile')
|
subfile = value[0].get('subfile') or value[0].get('new_subfile')
|
||||||
if subfile and subfile != 'http://www.dramafever.com/st/':
|
if subfile and subfile != 'http://www.dramafever.com/st/':
|
||||||
info['subtitiles'].setdefault('English', []).append({
|
info.setdefault('subtitles', {}).setdefault('English', []).append({
|
||||||
'ext': 'srt',
|
'ext': 'srt',
|
||||||
'url': subfile,
|
'url': subfile,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue