diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-07-09 07:13:32 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-07-09 07:13:32 +0700 |
commit | 9e4f5dc1e920b181d7e4a4ae824f86db8bc3a8e3 (patch) | |
tree | e8dcc4365b7ef3c5491de12a7994fce4dac9b499 | |
parent | 1251565ee0efd71f98d77f1eeefe3f3e38ec6f43 (diff) |
[animeondemand] Pass num for episode based videos
-rw-r--r-- | youtube_dl/extractor/animeondemand.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/animeondemand.py b/youtube_dl/extractor/animeondemand.py index 1f044e20b..159c6ef5a 100644 --- a/youtube_dl/extractor/animeondemand.py +++ b/youtube_dl/extractor/animeondemand.py @@ -115,7 +115,7 @@ class AnimeOnDemandIE(InfoExtractor): entries = [] - def extract_info(html, video_id): + def extract_info(html, video_id, num=None): title, description = [None] * 2 formats = [] @@ -143,7 +143,7 @@ class AnimeOnDemandIE(InfoExtractor): format_id_list.append(lang) if kind: format_id_list.append(kind) - if not format_id_list: + if not format_id_list and num is not None: format_id_list.append(compat_str(num)) format_id = '-'.join(format_id_list) format_note = ', '.join(filter(None, (kind, lang_note))) @@ -203,8 +203,8 @@ class AnimeOnDemandIE(InfoExtractor): 'formats': formats, } - def extract_entries(html, video_id, common_info): - info = extract_info(html, video_id) + def extract_entries(html, video_id, common_info, num): + info = extract_info(html, video_id, num) if info['formats']: self._sort_formats(info['formats']) |