feat(all/torrentio): align queries with nsfw tag
This commit is contained in:
parent
b132796c12
commit
044146592d
1 changed files with 4 additions and 23 deletions
|
@ -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()
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue