From 3511757413b221098dd4e7b0c23b1df99d7bc16b Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Sun, 25 Sep 2022 14:16:30 +0200 Subject: [PATCH] Cambio dominio SCWS -> fix streamingcommunity e animeunity --- channels/animeunity.py | 4 ++-- channels/streamingcommunity.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/channels/animeunity.py b/channels/animeunity.py index ffefe0f4..261a8a25 100644 --- a/channels/animeunity.py +++ b/channels/animeunity.py @@ -224,13 +224,13 @@ def findvideos(item): from hashlib import md5 # Calculate Token - client_ip = support.httptools.downloadpage('https://scws.xyz/videos/{}'.format(item.scws_id), headers=headers).json.get( + client_ip = support.httptools.downloadpage('https://scws.work/videos/{}'.format(item.scws_id), headers=headers).json.get( 'client_ip') logger.debug(client_ip) expires = int(time() + 172800) token = b64encode(md5('{}{} Yc8U6r8KjAKAepEA'.format(expires, client_ip).encode('utf-8')).digest()).decode('utf-8').replace('=', '').replace('+', '-').replace('/', '_') - url = 'https://scws.xyz/master/{}?token={}&expires={}&n=1'.format(item.scws_id, token, expires) + url = 'https://scws.work/master/{}?token={}&expires={}&n=1'.format(item.scws_id, token, expires) itemlist = [item.clone(title=support.config.get_localized_string(30137), url=url, server='directo', action='play', manifest='hls')] else: itemlist = [item.clone(title=support.config.get_localized_string(30137), url=item.video_url, server='directo', action='play')] diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index 3c3fc8f1..b3672112 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -252,12 +252,12 @@ def play(item): return [] # Calculate Token - client_ip = support.httptools.downloadpage('https://scws.xyz/videos/{}'.format(scws_id), headers=headers).json.get('client_ip') + client_ip = support.httptools.downloadpage('https://scws.work/videos/{}'.format(scws_id), headers=headers).json.get('client_ip') logger.debug(client_ip) expires = int(time() + 172800) token = b64encode(md5('{}{} Yc8U6r8KjAKAepEA'.format(expires, client_ip).encode('utf-8')).digest()).decode('utf-8').replace('=', '').replace('+', '-').replace('/', '_') - url = 'https://scws.xyz/master/{}?token={}&expires={}&n=1'.format(scws_id, token, expires) + url = 'https://scws.work/master/{}?token={}&expires={}&n=1'.format(scws_id, token, expires) subs = [] urls = []