feat(all/torrentio): align queries with nsfw tag

This commit is contained in:
Victor Borges 2025-02-15 02:23:31 -03:00
parent b132796c12
commit 044146592d
No known key found for this signature in database
GPG key ID: 5EB1323FF56C1031

View file

@ -29,7 +29,8 @@ fun anilistQuery() = """
startDate_like: %year,
seasonYear: %seasonYear,
season: %season,
format_in: %format
format_in: %format,
isAdult: false
) {
id
title {
@ -71,7 +72,7 @@ fun anilistLatestQuery() = """
airingAt_lesser: ${System.currentTimeMillis() / 1000 - 10000},
sort: %sort
) {
media {
media(isAdult: false) {
id
title {
romaji
@ -103,7 +104,7 @@ fun anilistLatestQuery() = """
fun getDetailsQuery() = """
query media(%id: Int) {
Media(id: %id) {
Media(id: %id, isAdult: false) {
id
title {
romaji
@ -137,23 +138,3 @@ query media(%id: Int) {
}
}
""".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()