]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[dramafever] Extract episode number
authorSergey M․ <dstftw@gmail.com>
Mon, 4 Jan 2016 19:17:33 +0000 (01:17 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 4 Jan 2016 19:17:33 +0000 (01:17 +0600)
youtube_dl/extractor/dramafever.py

index 0e9e6f7bac7ca60211af3488c5206e85b852013c..8d71d67695fced172a0ee300d2b952e875423de4 100644 (file)
@@ -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