diff --git a/run.py b/run.py index 3662e1f..41e0da0 100644 --- a/run.py +++ b/run.py @@ -375,8 +375,10 @@ async def addon_stream(request: Request,config, type, id,): print(f"CB01 Found Results for {id}") if "mixdrop" in url_cbo1: if MFP == "1": - url_cbo1 = f'{MFP_url}/extractor/video?api_password={MFP_password}&d={url_cbo1}&host=Mixdrop&redirect_stream=true' - streams['streams'].append({'name': f"{Name}",'title': f'{Icon}CB01', 'url': url_cbo1, 'behaviorHints': {'bingeGroup': 'cb01'}}) + url_cbo1 = f'{MFP_url}/extractor/video?api_password={MFP_password}&d={url_cbo1}&host=Mixdrop&redirect_stream=false' + url_cbo1 = await transform_mfp(url_cbo1,client) + if url_cbo1: + streams['streams'].append({'name': f"{Name}",'title': f'{Icon}CB01', 'url': url_cbo1, 'behaviorHints': {'bingeGroup': 'cb01'}}) elif "delivery" in url_cbo1: streams['streams'].append({'name': f'{Name}', 'title': f'{Icon}CB01\n MixDrop Will work only on a local instance!', 'url': url_cbo1,'behaviorHints': {'proxyHeaders': {"request": {"User-Agent": User_Agent}}, 'notWebReady': True, 'bingeGroup': 'cb01'}})