Fix streamingcommunity
This commit is contained in:
@@ -242,6 +242,7 @@ def play(item):
|
|||||||
|
|
||||||
data = support.httptools.downloadpage(item.url + item.episodeid, headers=headers).data.replace('"','"').replace('\\','')
|
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
|
scws_id = support.match(data, patron=r'scws_id"\s*:\s*(\d+)').match
|
||||||
|
# support.dbg()
|
||||||
|
|
||||||
if not scws_id:
|
if not scws_id:
|
||||||
if '<strong>Prossimamente' in data:
|
if '<strong>Prossimamente' in data:
|
||||||
@@ -250,7 +251,7 @@ def play(item):
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
# Calculate Token
|
# 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)
|
expires = int(time() + 172800)
|
||||||
token = b64encode(md5('{}{} Yc8U6r8KjAKAepEA'.format(expires, client_ip).encode('utf-8')).digest()).decode('utf-8').replace('=', '').replace('+', '-').replace('/', '_')
|
token = b64encode(md5('{}{} Yc8U6r8KjAKAepEA'.format(expires, client_ip).encode('utf-8')).digest()).decode('utf-8').replace('=', '').replace('+', '-').replace('/', '_')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user