Fix AniPlay
This commit is contained in:
+6
-1
@@ -197,7 +197,11 @@ def episodios(item):
|
|||||||
url = '{}/api/anime/{}'.format(host, item.id)
|
url = '{}/api/anime/{}'.format(host, item.id)
|
||||||
json = httptools.downloadpage(url, CF=False ).json
|
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 = json['seasons']
|
||||||
seasons.sort(key=lambda s: s['episodeStart'])
|
seasons.sort(key=lambda s: s['episodeStart'])
|
||||||
|
|
||||||
@@ -240,6 +244,7 @@ def episodios(item):
|
|||||||
|
|
||||||
def list_episodes(item, json=None):
|
def list_episodes(item, json=None):
|
||||||
itemlist = []
|
itemlist = []
|
||||||
|
|
||||||
if not json:
|
if not json:
|
||||||
url = '{}/api/anime/{}'.format(host, item.id)
|
url = '{}/api/anime/{}'.format(host, item.id)
|
||||||
json = httptools.downloadpage(url, CF=False ).json
|
json = httptools.downloadpage(url, CF=False ).json
|
||||||
|
|||||||
Reference in New Issue
Block a user