Skip to content

Commit

Permalink
fix(AnimeSkip): response error due excess quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
urFate committed Sep 21, 2024
1 parent f591f79 commit de33030
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions data/src/main/java/org/shirabox/data/animeskip/RequestBody.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ object RequestBody {
" id\n" +
" }\n" +
"}"

fun loginQuery(email: String, hash: String): String {
return "query Login {\n" +
" login(usernameEmail: \"$email\", passwordHash: \"$hash\") {\n" +
Expand All @@ -28,11 +29,7 @@ object RequestBody {
}

fun searchShowsQuery(query: String): String {
return "query SearchShows {\n" +
"\tsearchShows(search:\"$query\", limit:1){\n" +
"\t\tid\n" +
"\t}\n" +
"}"
return "{ searchShows(search: \"${query.replace("\"", "")}\", limit: 1) { id } }"
}

fun findEpisodesByShowIdQuery(showId: String): String {
Expand Down

0 comments on commit de33030

Please sign in to comment.