Fix AniPlay

This commit is contained in:
Alhaziel01
2021-07-08 09:03:35 +02:00
parent a810a2fe4d
commit d7918418a2
+6 -1
View File
@@ -197,7 +197,11 @@ def episodios(item):
url = '{}/api/anime/{}'.format(host, item.id)
json = httptools.downloadpage(url, CF=False ).json
if json.get('seasons'):
if type(json) == list:
item.show_renumber = False
itemlist = list_episodes(item, json)
elif json.get('seasons'):
seasons = json['seasons']
seasons.sort(key=lambda s: s['episodeStart'])
@@ -240,6 +244,7 @@ def episodios(item):
def list_episodes(item, json=None):
itemlist = []
if not json:
url = '{}/api/anime/{}'.format(host, item.id)
json = httptools.downloadpage(url, CF=False ).json