From f19f5340590246c0f79bdb0c76effca1949a6a87 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 24 Jul 2020 18:36:12 +0200 Subject: [PATCH] Alcuni Fix --- channels/animesaturn.py | 104 ++++++++++++++++++++++-------- channels/animeworld.py | 113 ++++++++++++++------------------- resources/settings.xml | 2 +- servers/animeworld_server.json | 2 +- 4 files changed, 126 insertions(+), 95 deletions(-) diff --git a/channels/animesaturn.py b/channels/animesaturn.py index e7680702..9dbbf050 100644 --- a/channels/animesaturn.py +++ b/channels/animesaturn.py @@ -3,32 +3,72 @@ # Canale per AnimeSaturn # ---------------------------------------------------------- +from lib import js2py from core import support +from platformcode import config host = support.config.get_channel_url() headers={'X-Requested-With': 'XMLHttpRequest'} +def get_data(item, head=[]): + global headers + for h in head: + headers[h[0]] = h[1] + if not item.count: item.count = 0 + jstr, location = support.match(item, patron=r'