diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-01-05 01:28:48 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-01-05 01:28:48 +0600 |
commit | bd19aa0ed32ca4d041e691d47697ad7b82454b69 (patch) | |
tree | 385683b7f18eedb8987f67b9e3ed6e589259da89 /youtube_dl/extractor/dramafever.py | |
parent | 8f4c56f33412db909e92218f4933d5b08beb9f21 (diff) |
[dramafever] Extract episode
Diffstat (limited to 'youtube_dl/extractor/dramafever.py')
-rw-r--r-- | youtube_dl/extractor/dramafever.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/dramafever.py b/youtube_dl/extractor/dramafever.py index 8d71d6769..a14021a9e 100644 --- a/youtube_dl/extractor/dramafever.py +++ b/youtube_dl/extractor/dramafever.py @@ -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 |