From 4d49d4f58f70a1510f135ca2f0fdf66f1cec488d Mon Sep 17 00:00:00 2001 From: UrloMythus Date: Sun, 19 Apr 2026 19:02:05 +0200 Subject: [PATCH] Improves Regex for hosters --- Src/API/eurostreaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/API/eurostreaming.py b/Src/API/eurostreaming.py index 6c400d1..1c7acf1 100644 --- a/Src/API/eurostreaming.py +++ b/Src/API/eurostreaming.py @@ -131,7 +131,7 @@ async def get_host_link(pattern,atag,client): async def scraping_links(atag,MFP,MFP_CREDENTIALS,client,streams,language): #Check which hosts are avaiable and extract the links from one of them. Turbovid uses Cloudflare therefore is not avaiable. Maxstream has a captcha. if "MixDrop" in atag and "DeltaBit" in atag: - pattern = r']*rel="noopener"[^>]*>DeltaBit' + pattern = r']*[^>]*>DeltaBit' href = await get_host_link(pattern,atag,client) try: streams = await deltabit(href,client,streams,"Eurostreaming",proxies,ForwardProxy,language,'Deltabit') @@ -259,7 +259,7 @@ async def eurostreaming(streams,id,client,MFP,MFP_CREDENTIALS): async def test_euro(): from curl_cffi.requests import AsyncSession async with AsyncSession() as client: - results = await eurostreaming({'streams': []},"tt12324366:2:2",client,"0",['test','test']) + results = await eurostreaming({'streams': []},"tt33318655:2:8",client,"0",['test','test']) print(results)