Fix AW,GH
This commit is contained in:
+5
-3
@@ -42,8 +42,10 @@ async def search(clean_id,client):
|
||||
soup = BeautifulSoup(response.text,'lxml',parse_only=SoupStrainer('li'))
|
||||
li_tags = soup.find_all('li')
|
||||
for tag in li_tags:
|
||||
if 'supervideo' in tag['data-link']:
|
||||
href = 'https:' + tag['data-link']
|
||||
if tag.get('data-link'):
|
||||
if 'supervideo' in tag.get('data-link'):
|
||||
href = 'https:' + tag['data-link']
|
||||
return href
|
||||
return href
|
||||
|
||||
|
||||
@@ -66,7 +68,7 @@ async def test_script():
|
||||
from curl_cffi.requests import AsyncSession
|
||||
async with AsyncSession() as client:
|
||||
# Replace with actual id, for example 'anime_id:episode' format
|
||||
test_id = "tt12300742" # This is an example ID format
|
||||
test_id = "tt7181546" # This is an example ID format
|
||||
results = await guardahd({'streams': []},test_id, client)
|
||||
print(results)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user