forked from minhngoc25a/yt-dlc
[animeondemand] Pass num for episode based videos
This commit is contained in:
parent
1251565ee0
commit
9e4f5dc1e9
|
@ -115,7 +115,7 @@ class AnimeOnDemandIE(InfoExtractor):
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
|
|
||||||
def extract_info(html, video_id):
|
def extract_info(html, video_id, num=None):
|
||||||
title, description = [None] * 2
|
title, description = [None] * 2
|
||||||
formats = []
|
formats = []
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ class AnimeOnDemandIE(InfoExtractor):
|
||||||
format_id_list.append(lang)
|
format_id_list.append(lang)
|
||||||
if kind:
|
if kind:
|
||||||
format_id_list.append(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_list.append(compat_str(num))
|
||||||
format_id = '-'.join(format_id_list)
|
format_id = '-'.join(format_id_list)
|
||||||
format_note = ', '.join(filter(None, (kind, lang_note)))
|
format_note = ', '.join(filter(None, (kind, lang_note)))
|
||||||
|
@ -203,8 +203,8 @@ class AnimeOnDemandIE(InfoExtractor):
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
}
|
}
|
||||||
|
|
||||||
def extract_entries(html, video_id, common_info):
|
def extract_entries(html, video_id, common_info, num):
|
||||||
info = extract_info(html, video_id)
|
info = extract_info(html, video_id, num)
|
||||||
|
|
||||||
if info['formats']:
|
if info['formats']:
|
||||||
self._sort_formats(info['formats'])
|
self._sort_formats(info['formats'])
|
||||||
|
|
Loading…
Reference in New Issue