]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[dramafever] Fix subtitles extraction (Closes #8049)
authorSergey M․ <dstftw@gmail.com>
Tue, 29 Dec 2015 18:13:00 +0000 (00:13 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 29 Dec 2015 18:13:00 +0000 (00:13 +0600)
youtube_dl/extractor/dramafever.py

index 60ed438f8cd9b254fa1ae8d25cd76ed866cab25d..b3b21d65f4c164b5a0e679e6bf6b1dfa33bcb80b 100644 (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,
                     })