1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-18 15:04:33 +01:00

[dramafever] Extract episode

This commit is contained in:
Sergey M․ 2016-01-05 01:28:48 +06:00
parent 8f4c56f334
commit bd19aa0ed3

View File

@ -115,7 +115,12 @@ class DramaFeverIE(DramaFeverBaseIE):
'ext': 'srt', 'ext': 'srt',
'url': subfile, '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 break
return info return info