From 4bbe9f2616578aa85e16d99705482482434c2a7e Mon Sep 17 00:00:00 2001 From: Lovi <62809003+Lovi-0@users.noreply.github.com> Date: Sun, 12 Jan 2025 17:59:25 +0100 Subject: [PATCH] Change search AU --- StreamingCommunity/Api/Site/animeunity/site.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/StreamingCommunity/Api/Site/animeunity/site.py b/StreamingCommunity/Api/Site/animeunity/site.py index c83238c..809b149 100644 --- a/StreamingCommunity/Api/Site/animeunity/site.py +++ b/StreamingCommunity/Api/Site/animeunity/site.py @@ -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,