Change search AU

This commit is contained in:
Lovi 2025-01-12 17:59:25 +01:00
parent 71d6a95aef
commit 4bbe9f2616

View File

@ -128,14 +128,22 @@ def title_search(title: str) -> int:
}
# Prepare JSON data to be sent in the request
json_data = {
'title': title # Use the provided title for the search
json_data = {
'title': title,
'type': False,
'year': False,
'order': False,
'status': False,
'genres': False,
'offset': 0,
'dubbed': False,
'season': False,
}
# Send a POST request to the API endpoint for live search
try:
response = httpx.post(
url=f'https://www.{SITE_NAME}.{domain_to_use}/livesearch',
url=f'https://www.{SITE_NAME}.{domain_to_use}/archivio/get-animes',
cookies=cookies,
headers=headers,
json=json_data,