fix(all/torrentioanime): use api.ani.zip for episode lists and fix nsfw #676

Merged
victor-borges merged 4 commits from main into main 2025-02-16 16:30:38 -06:00
Showing only changes of commit 044146592d - Show all commits

View file

@ -29,7 +29,8 @@ fun anilistQuery() = """
startDate_like: %year, startDate_like: %year,
seasonYear: %seasonYear, seasonYear: %seasonYear,
season: %season, season: %season,
format_in: %format format_in: %format,
isAdult: false
) { ) {
id id
title { title {
@ -71,7 +72,7 @@ fun anilistLatestQuery() = """
airingAt_lesser: ${System.currentTimeMillis() / 1000 - 10000}, airingAt_lesser: ${System.currentTimeMillis() / 1000 - 10000},
sort: %sort sort: %sort
) { ) {
media { media(isAdult: false) {
id id
title { title {
romaji romaji
@ -103,7 +104,7 @@ fun anilistLatestQuery() = """
fun getDetailsQuery() = """ fun getDetailsQuery() = """
query media(%id: Int) { query media(%id: Int) {
Media(id: %id) { Media(id: %id, isAdult: false) {
id id
title { title {
romaji romaji
@ -137,23 +138,3 @@ query media(%id: Int) {
} }
} }
""".toQuery() """.toQuery()
fun getEpisodeQuery() = """
query media(%id: Int, %type: MediaType) {
Media(id: %id, type: %type) {
episodes
nextAiringEpisode {
episode
}
}
}
""".toQuery()
fun getMalIdQuery() = """
query media(%id: Int, %type: MediaType) {
Media(id: %id, type: %type) {
idMal
id
}
}
""".toQuery()