Browse Source

[dramafever] Extract episode

totalwebcasting
Sergey M․ 9 years ago
parent
commit
bd19aa0ed3
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      youtube_dl/extractor/dramafever.py

+ 6
- 1
youtube_dl/extractor/dramafever.py View File

@ -115,7 +115,12 @@ class DramaFeverIE(DramaFeverBaseIE):
'ext': 'srt',
'url': subfile,
})
info['episode_number'] = int_or_none(v.get('number'))
episode_number = int_or_none(v.get('number'))
episode_fallback = 'Episode'
if episode_number:
episode_fallback += ' %d' % episode_number
info['episode'] = v.get('title', episode_fallback)
info['episode_number'] = episode_number
break
return info


Loading…
Cancel
Save