Fix
This commit is contained in:
@@ -296,16 +296,15 @@ async def addon_stream(request: Request,config, type, id,):
|
|||||||
if url_streaming_community is not None:
|
if url_streaming_community is not None:
|
||||||
print(f"StreamingCommunity Found Results for {id}")
|
print(f"StreamingCommunity Found Results for {id}")
|
||||||
if Remote_Instance == "1":
|
if Remote_Instance == "1":
|
||||||
from urllib.parse import quote
|
|
||||||
forwarded_proto = request.headers.get("x-forwarded-proto")
|
forwarded_proto = request.headers.get("x-forwarded-proto")
|
||||||
scheme = forwarded_proto if forwarded_proto else request.url.scheme
|
scheme = forwarded_proto if forwarded_proto else request.url.scheme
|
||||||
instance_url = f"{scheme}://{request.url.netloc}"
|
instance_url = f"{scheme}://{request.url.netloc}"
|
||||||
url_streaming_community = url_streaming_community.replace("?","&")
|
url_streaming_community = url_streaming_community.replace("?","&")
|
||||||
url_streaming_community = instance_url + "/vixcloud/manifest.m3u8?d=" + url_streaming_community
|
url_streaming_community = instance_url + "/vixcloud/manifest.m3u8?d=" + url_streaming_community
|
||||||
if quality_sc == "1080":
|
streams['streams'].append({"name":f'{Name}\n{quality} Max', 'title': f'{Icon}StreamingCommunity\n {slug_sc.replace("-"," ").capitalize()}','url': url_streaming_community,'behaviorHints': {'bingeGroup': f'streamingcommunity{quality}'}})
|
||||||
streams['streams'].append({"name":f'{Name}\n1080p Max', 'title': f'{Icon}StreamingCommunity\n {slug_sc.replace("-"," ").capitalize()}','url': url_streaming_community,'behaviorHints': {'proxyHeaders': {"request": {"user-agent": User_Agent}}, 'notWebReady': True, 'bingeGroup': 'streamingcommunity1080'}})
|
|
||||||
else:
|
else:
|
||||||
streams['streams'].append({"name":f'{Name}\n{quality} Max', 'title': f'{Icon}StreamingCommunity\n {slug_sc.replace("-"," ").capitalize()}','url': url_streaming_community,'behaviorHints': {'proxyHeaders': {"request": {"user-agent": User_Agent}}, 'notWebReady': True, 'bingeGroup': f'streamingcommunity{quality}'}})
|
streams['streams'].append({"name":f'{Name}\n{quality} Max', 'title': f'{Icon}StreamingCommunity\n {slug_sc.replace("-"," ").capitalize()}','url': url_streaming_community,'behaviorHints': {'proxyHeaders': {"request": {"user-agent": User_Agent}}, 'notWebReady': True, 'bingeGroup': f'streamingcommunity{quality}'}})
|
||||||
|
|
||||||
if provider_maps['LORDCHANNEL'] == "1" and LC == "1":
|
if provider_maps['LORDCHANNEL'] == "1" and LC == "1":
|
||||||
url_lordchannel,quality_lordchannel = await lordchannel(id,client)
|
url_lordchannel,quality_lordchannel = await lordchannel(id,client)
|
||||||
if quality_lordchannel == "FULL HD" and url_lordchannel != None:
|
if quality_lordchannel == "FULL HD" and url_lordchannel != None:
|
||||||
|
|||||||
Reference in New Issue
Block a user