From: Sergey M․ Date: Mon, 4 Jan 2016 19:17:33 +0000 (+0600) Subject: [dramafever] Extract episode number X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=8f4c56f33412db909e92218f4933d5b08beb9f21;p=youtube-dl [dramafever] Extract episode number --- diff --git a/youtube_dl/extractor/dramafever.py b/youtube_dl/extractor/dramafever.py index 0e9e6f7ba..8d71d6769 100644 --- a/youtube_dl/extractor/dramafever.py +++ b/youtube_dl/extractor/dramafever.py @@ -12,6 +12,7 @@ from ..compat import ( from ..utils import ( ExtractorError, clean_html, + int_or_none, sanitized_Request, ) @@ -114,6 +115,7 @@ class DramaFeverIE(DramaFeverBaseIE): 'ext': 'srt', 'url': subfile, }) + info['episode_number'] = int_or_none(v.get('number')) break return info