Test for Fixing proxies for OST
This commit is contained in:
@@ -73,6 +73,7 @@ async def search(showname,date,client,ismovie,episode,season):
|
||||
if year == date:
|
||||
pattern = r'https://uprot\.net/fxf/[^\s"<>]+'
|
||||
match = re.search(pattern, response.text)
|
||||
print("Here Match",match)
|
||||
if match:
|
||||
name = a_tag.text
|
||||
flexy_link = match.group(1)
|
||||
@@ -93,6 +94,7 @@ async def search(showname,date,client,ismovie,episode,season):
|
||||
episode = episode.zfill(2)
|
||||
pattern = rf'{season}x{episode}.*?<a href=[\'"](https://uprot\.net/fxf/[^\'"]+)'
|
||||
match = re.search(pattern, response.text, re.DOTALL)
|
||||
print("Here Match",match)
|
||||
if match:
|
||||
name = a_tag.text.replace("\t","").replace("\n","")
|
||||
flexy_link = match.group(1)
|
||||
@@ -122,7 +124,6 @@ async def onlineserietv(id,client):
|
||||
showname,date = get_info_tmdb(clean_id,ismovie,type)
|
||||
flexy_link,name = await search(showname,date,client,ismovie,episode,season)
|
||||
flexy_link = flexy_link.replace("fxf","fxe")
|
||||
print(flexy_link)
|
||||
real_url = await client.head(ForwardProxy + flexy_link, headers=headers, impersonate = "chrome124", proxies = proxies)
|
||||
real_url = real_url.url
|
||||
final_url = await eval_solver(real_url,proxies, ForwardProxy, client)
|
||||
|
||||
Reference in New Issue
Block a user