From 00275adb42fe1465c0a32f4eb893ba1abbf579a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=CA=9C=C9=AA=C9=B4=E1=B4=87=C9=AA=20N=E1=B4=8F=E1=B4=9C?= =?UTF-8?q?=E1=B4=A2=E1=B4=87=C9=B4?= <157171073+Shineii86@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:26:18 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20AniList=20queries=20=E2=80=94=20trending?= =?UTF-8?q?=20args,=20studio=20type=20arg,=20tags=20field=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Trending: removed invalid trending:7/30 args (not in AniList schema) - Studio: removed type:ANIME from Studio.media (not supported) - Tags: TagCollection→MediaTagCollection, removed rank field --- src/helpers/anilist.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/anilist.js b/src/helpers/anilist.js index c46ff1e..27f8343 100644 --- a/src/helpers/anilist.js +++ b/src/helpers/anilist.js @@ -660,7 +660,7 @@ const getTrendingDaily = async (page = 1, perPage = 20) => { query ($page: Int, $perPage: Int) { Page(page: $page, perPage: $perPage) { pageInfo { total currentPage lastPage hasNextPage perPage } - media(type: ANIME, sort: TRENDING_DESC, trending: 7) { + media(type: ANIME, sort: TRENDING_DESC) { ${MEDIA_LIST_FIELDS} } } @@ -691,7 +691,7 @@ const getTrendingWeekly = async (page = 1, perPage = 20) => { query ($page: Int, $perPage: Int) { Page(page: $page, perPage: $perPage) { pageInfo { total currentPage lastPage hasNextPage perPage } - media(type: ANIME, sort: TRENDING_DESC, trending: 30) { + media(type: ANIME, sort: TRENDING_DESC) { ${MEDIA_LIST_FIELDS} } } @@ -760,7 +760,7 @@ const getAnimeByStudio = async (studioName, page = 1, perPage = 20) => { query ($name: String, $page: Int, $perPage: Int) { Studio(search: $name) { id name isAnimationStudio siteUrl - media(type: ANIME, sort: POPULARITY_DESC, page: $page, perPage: $perPage) { + media(sort: POPULARITY_DESC, page: $page, perPage: $perPage) { pageInfo { total currentPage lastPage hasNextPage perPage } nodes { ${MEDIA_LIST_FIELDS} } }