Added new provider: Onlineserietv

This commit is contained in:
UrloMythus
2025-03-05 18:39:17 +01:00 Unverified
parent bdb972d3e2
commit dada4de206
7 changed files with 311 additions and 1 deletions
+7
View File
@@ -16,6 +16,7 @@ from Src.API.animeworld import animeworld
from Src.Utilities.dictionaries import okru,STREAM,extra_sources,webru_vary,webru_dlhd,provider_map,skystreaming
from Src.API.epg import tivu, tivu_get,epg_guide,convert_bho_1,convert_bho_2,convert_bho_3
from Src.API.webru import webru,get_skystreaming
from Src.API.onlineserietv import onlineserietv
from curl_cffi.requests import AsyncSession
from slowapi import Limiter
from slowapi.util import get_remote_address
@@ -51,6 +52,7 @@ CB = config.CB
DDL = config.DDL
GS = config.GS
GHD = config.GHD
OST = config.OST
HOST = config.HOST
PORT = int(config.PORT)
Icon = config.Icon
@@ -395,6 +397,11 @@ async def addon_stream(request: Request,config, type, id,):
if url_guardahd:
print(f"GuardaHD Found Results for {id}")
streams['streams'].append({'name': f"{Name}",'title': f'{Icon}GuardaHD', 'url': url_guardahd, 'behaviorHints': {'bingeGroup': 'guardahd'}})
if provider_maps['ONLINESERIETV'] == "1" and OST == "1":
url_onlineserietv,name = await onlineserietv(id,client)
if url_onlineserietv:
print(f"OnlineSerieTV Found Results for {id}")
streams['streams'].append({'name': f"{Name}",'title': f'{Icon}OnlineSerieTV\n{name}', 'url': url_onlineserietv, 'behaviorHints': {'proxyHeaders': {'request': {"User-Agent": 'Mozilla/5.0 (Linux; Android 12) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.71 Mobile Safari/537.36', "Referer": "https://flexy.stream/"}}, 'bingeGroup': 'onlineserietv', 'notWebReady': True}})
if not streams['streams']:
raise HTTPException(status_code=404)