mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 17:18:01 +01:00
[dramafever] Extract episode
This commit is contained in:
parent
8f4c56f334
commit
bd19aa0ed3
1 changed files with 6 additions and 1 deletions
|
@ -115,7 +115,12 @@ def _real_extract(self, url):
|
||||||
'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
|
||||||
|
|
Loading…
Reference in a new issue