mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-05 02:55:53 +00:00
[dramafever] Extract episode
This commit is contained in:
parent
8f4c56f334
commit
bd19aa0ed3
@ -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…
Reference in New Issue
Block a user