Fix streamingcommunity e animeunity

This commit is contained in:
Alhaziel01
2022-09-26 09:15:56 +02:00
parent 7e2c5a6b4b
commit b0f3e4022c
2 changed files with 4 additions and 3 deletions

View File

@@ -224,8 +224,8 @@ def findvideos(item):
from hashlib import md5
# Calculate Token
client_ip = support.httptools.downloadpage('https://scws.work/videos/{}'.format(item.scws_id), headers=headers).json.get(
'client_ip')
# client_ip = support.httptools.downloadpage('https://scws.work/videos/{}'.format(item.scws_id), headers=headers).json.get('client_ip')
client_ip = support.httptools.downloadpage('https://api.ipify.org/', headers=headers).data
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('/', '_')

View File

@@ -252,7 +252,8 @@ def play(item):
return []
# Calculate Token
client_ip = support.httptools.downloadpage('https://scws.work/videos/{}'.format(scws_id), headers=headers).json.get('client_ip')
# client_ip = support.httptools.downloadpage('https://scws.work/videos/{}?b=1'.format(scws_id), headers=headers).json.get('client_ip')
client_ip = support.httptools.downloadpage('https://api.ipify.org/', headers=headers).data
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('/', '_')