mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 10:15:10 +00:00
Fix AniList queries — trending args, studio type arg, tags field name
- 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
This commit is contained in:
@@ -660,7 +660,7 @@ const getTrendingDaily = async (page = 1, perPage = 20) => {
|
|||||||
query ($page: Int, $perPage: Int) {
|
query ($page: Int, $perPage: Int) {
|
||||||
Page(page: $page, perPage: $perPage) {
|
Page(page: $page, perPage: $perPage) {
|
||||||
pageInfo { total currentPage lastPage hasNextPage perPage }
|
pageInfo { total currentPage lastPage hasNextPage perPage }
|
||||||
media(type: ANIME, sort: TRENDING_DESC, trending: 7) {
|
media(type: ANIME, sort: TRENDING_DESC) {
|
||||||
${MEDIA_LIST_FIELDS}
|
${MEDIA_LIST_FIELDS}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -691,7 +691,7 @@ const getTrendingWeekly = async (page = 1, perPage = 20) => {
|
|||||||
query ($page: Int, $perPage: Int) {
|
query ($page: Int, $perPage: Int) {
|
||||||
Page(page: $page, perPage: $perPage) {
|
Page(page: $page, perPage: $perPage) {
|
||||||
pageInfo { total currentPage lastPage hasNextPage perPage }
|
pageInfo { total currentPage lastPage hasNextPage perPage }
|
||||||
media(type: ANIME, sort: TRENDING_DESC, trending: 30) {
|
media(type: ANIME, sort: TRENDING_DESC) {
|
||||||
${MEDIA_LIST_FIELDS}
|
${MEDIA_LIST_FIELDS}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -760,7 +760,7 @@ const getAnimeByStudio = async (studioName, page = 1, perPage = 20) => {
|
|||||||
query ($name: String, $page: Int, $perPage: Int) {
|
query ($name: String, $page: Int, $perPage: Int) {
|
||||||
Studio(search: $name) {
|
Studio(search: $name) {
|
||||||
id name isAnimationStudio siteUrl
|
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 }
|
pageInfo { total currentPage lastPage hasNextPage perPage }
|
||||||
nodes { ${MEDIA_LIST_FIELDS} }
|
nodes { ${MEDIA_LIST_FIELDS} }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user