diff --git a/Src/API/webru.py b/Src/API/webru.py index f1c9932..d62ffce 100644 --- a/Src/API/webru.py +++ b/Src/API/webru.py @@ -42,7 +42,6 @@ async def webru(id,site,client): mediaproxy = config.MediaProxy medialink = random.choice(mediaproxy) new_stream_url = f'{medialink}proxy/hls?key_url=https%3A%2F%2Fkey.mizhls.ru%2F&api_password={MEDIAFLOW_PASS}&d={stream_url}&h_Referer={Referer}&h_Origin={Origin}&h_User-Agent=Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F58.0.3029.110%20Safari%2F537.3' - print(new_stream_url) return new_stream_url except Exception as e: print("WebRu failed",e) diff --git a/run.py b/run.py index 789a54e..98d7d28 100644 --- a/run.py +++ b/run.py @@ -208,9 +208,11 @@ async def addon_stream(request: Request,config, type, id,): streams['streams'].append({'title': f"{HF}Server {i} " + channel['title'],'url': webru_url}) if id in webru_dlhd: if DLHD == "1": + print("Webru DLHD triggered") i = i+1 - webru_url = await webru(id,"dlhd",client) - streams['streams'].append({'title': f"{HF}Server {i} " + channel['title'],'url': webru_url}) + webru_url_2 = await webru(id,"dlhd",client) + print(webru_url_2) + streams['streams'].append({'title': f"{HF}Server {i} " + channel['title'],'url': webru_url_2}) if not streams['streams']: raise HTTPException(status_code=404) return respond_with(streams)