From bb29243f03e85e33628c7b01ca64cee9c2850677 Mon Sep 17 00:00:00 2001 From: marco <10120390+mac12m99@users.noreply.github.com> Date: Tue, 28 Dec 2021 16:49:50 +0100 Subject: [PATCH] Fix streamingcommunity --- channels/streamingcommunity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index dc455f7e..dc3849d4 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -231,6 +231,6 @@ def play(item): 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.xyz/master/{}?token={}&expires={}&n=1|User-Agent={}&Referer={}'.format(scws_id, token, expires, httptools.get_user_agent(), host) - return [item.clone(title = channeltools.get_channel_parameters(item.channel)['title'], server='directo', url=url, manifest='hls')] + return [item.clone(title = channeltools.get_channel_parameters(item.channel)['title'], server='directo', url=url)]