From 414a89b7a5fac5ff1973381f94de855d507eaa41 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 Feb 2026 21:36:43 +0000 Subject: [PATCH] fix: use anime-sama.tv directly to avoid redirect issues --- app/downloaders/anime_sites/animesama.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/downloaders/anime_sites/animesama.py b/app/downloaders/anime_sites/animesama.py index 8b741f1..3e1dcab 100644 --- a/app/downloaders/anime_sites/animesama.py +++ b/app/downloaders/anime_sites/animesama.py @@ -682,8 +682,9 @@ class AnimeSamaDownloader(BaseAnimeSite): start = time.time() logger.debug(f"Searching for '{query}' ({lang})...") - # Use the current domain from anime-sama.pw - current_domain = await self.get_current_domain() + # Use anime-sama.tv directly (anime-sama.si has redirect issues) + current_domain = "anime-sama.tv" + # Use the official search API endpoint search_api_url = f"https://{current_domain}/template-php/defaut/fetch.php"