Fix GS
This commit is contained in:
@@ -85,6 +85,9 @@ async def search(clean_id,client):
|
||||
async def player_url(page_url, season, episode,client):
|
||||
try:
|
||||
headers = random_headers.generate()
|
||||
if GS_ForwardProxy == "1":
|
||||
response = await client.head(page_url, allow_redirects=True, impersonate = "chrome124", headers = headers)
|
||||
page_url = response.url
|
||||
response = await client.get(ForwardProxy + page_url, allow_redirects=True, impersonate = "chrome124", headers = headers, proxies = proxies)
|
||||
soup = BeautifulSoup(response.text,'lxml',parse_only=SoupStrainer('a'))
|
||||
a_tag = soup.find('a', id = f"serie-{season}_{episode}")
|
||||
|
||||
Reference in New Issue
Block a user