mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
Fix parsing irregular episode index
This commit is contained in:
parent
fca1ec8d9e
commit
c4c78721de
@ -245,7 +245,7 @@ def fetch_sid(cid, aid):
|
||||
|
||||
def collect_bangumi_epids(json_data):
|
||||
eps = json_data['result']['episodes']
|
||||
eps = sorted(eps, key=lambda item: float(item['index']))
|
||||
eps = sorted(eps, key=lambda item: float(item['index'].split('-')[0].split('+')[0]))
|
||||
result = []
|
||||
for ep in eps:
|
||||
result.append(ep['episode_id'])
|
||||
|
Loading…
Reference in New Issue
Block a user