Explorar o código

[dramafever] Fix subtitles extraction (Closes #8049)

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
453fe2a345
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/dramafever.py

+ 1 - 1
youtube_dl/extractor/dramafever.py

@@ -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,
                     })