From b66d292ff2b7f1384b203f771c80af6af646861c Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 26 Sep 2022 19:50:28 +0200 Subject: [PATCH] Fix SC --- channels/streamingcommunity.py | 4 ++-- platformcode/platformtools.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/channels/streamingcommunity.py b/channels/streamingcommunity.py index 0abf1529..2621f5bb 100644 --- a/channels/streamingcommunity.py +++ b/channels/streamingcommunity.py @@ -273,6 +273,6 @@ def play(item): elif url: urls.append(['hls [{}]'.format(res), url]) - return [item.clone(title = channeltools.get_channel_parameters(item.channel)['title'], server='directo', video_urls=urls, subtitle=subs, manifest='hls')] + return [item.clone(title = channeltools.get_channel_parameters(item.channel)['title'], server='directo', video_urls=urls, subtitle=subs, manifest='hls', referer=False)] else: - 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, manifest='hls', referer=False)] diff --git a/platformcode/platformtools.py b/platformcode/platformtools.py index 8cf1e9e8..7c241ed6 100644 --- a/platformcode/platformtools.py +++ b/platformcode/platformtools.py @@ -1106,7 +1106,7 @@ def play_video(item, strm=False, force_direct=False, autoplay=False): # except: # logger.error('Failed to resolve hostname, fallback to normal dns') from core import support - support.dbg() + # support.dbg() if '|' not in mediaurl and item.referer != False: mediaurl = mediaurl + '|' + urllib.urlencode(headers)