Fixed DAZN

This commit is contained in:
UrloMythus
2024-09-22 20:51:58 +02:00 Unverified
parent 790776e591
commit d9788a55b8
3 changed files with 50 additions and 12 deletions
+7 -5
View File
@@ -184,7 +184,7 @@ async def addon_stream(request: Request,config, type, id,):
i = i+1
channel_url = await okru_get_url(id,client)
streams['streams'].append({
'title': f"Server {i} " + channel['title'] + " OKRU",
'title': f"{HF}Server {i} " + channel['title'] + " OKRU",
'url': channel_url
})
if id in extra_sources:
@@ -193,10 +193,12 @@ async def addon_stream(request: Request,config, type, id,):
i = i+1
streams['streams'].append({'title':f"{HF}Server {i} " + channel['title'],'url': item})
if id in skystreaming:
i = i+1
url,Host = await get_skystreaming(id,client)
streams['streams'].append({'title': f'{HF}Server {i}', 'url': url, "behaviorHints": {"notWebReady": True, "proxyHeaders": {"request": {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0", "Accept": "*/*", "Accept-Language": "en-US,en;q=0.5", "Origin": "https://skystreaming.guru", "DNT": "1", "Sec-GPC": "1", "Connection": "keep-alive", "Referer": "https://skystreaming.guru/", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "cross-site", "Pragma": "no-cache", "Cache-Control": "no-cache", "TE": "trailers","Host": Host}}}})
urls,Host = await get_skystreaming(id,client)
for url in urls:
i = i+1
streams['streams'].append({'title': f'{HF}Server {i}', 'url': url, "behaviorHints": {"notWebReady": True, "proxyHeaders": {"request": {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0", "Accept": "*/*", "Accept-Language": "en-US,en;q=0.5", "Origin": "https://skystreaming.guru", "DNT": "1", "Sec-GPC": "1", "Connection": "keep-alive", "Referer": "https://skystreaming.guru/", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "cross-site", "Pragma": "no-cache", "Cache-Control": "no-cache", "TE": "trailers","Host": Host}}}})
if id in webru_vary:
i = i+1
webru_url = await webru(id,"vary",client)