From 71cb39ddc459df7bc343368097415ea5f79fe9b7 Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Mon, 17 Jan 2022 20:27:40 +0100 Subject: [PATCH] Fix streamingcommunity --- channels/streamingcommunity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index ca59f8a9..e4fd6c6d 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -242,6 +242,7 @@ def play(item): data = support.httptools.downloadpage(item.url + item.episodeid, headers=headers).data.replace('"','"').replace('\\','') scws_id = support.match(data, patron=r'scws_id"\s*:\s*(\d+)').match + # support.dbg() if not scws_id: if 'Prossimamente' in data: @@ -250,7 +251,7 @@ def play(item): return [] # Calculate Token - client_ip = support.httptools.downloadpage('https://scws.xyz/videos/' + scws_id).json.get('client_ip') + client_ip = httptools.downloadpage('https://api.ipify.org/').data expires = int(time() + 172800) token = b64encode(md5('{}{} Yc8U6r8KjAKAepEA'.format(expires, client_ip).encode('utf-8')).digest()).decode('utf-8').replace('=', '').replace('+', '-').replace('/', '_')