Skip to content

Commit

Permalink
fix(tracking): Fix Shikimori
Browse files Browse the repository at this point in the history
  • Loading branch information
jmir1 committed Jul 16, 2024
1 parent 74b32a3 commit 58817c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ShikimoriApi(
put("user_id", userId)
put("target_id", track.remote_id)
put("target_type", "Anime")
put("chapters", track.last_episode_seen.toInt())
put("episodes", track.last_episode_seen.toInt())
put("score", track.score.toInt())
put("status", track.toShikimoriStatus())
}
Expand Down Expand Up @@ -257,7 +257,7 @@ class ShikimoriApi(

suspend fun findLibAnime(track: AnimeTrack, user_id: String): AnimeTrack? {
return withIOContext {
val urlAnimes = "$apiUrl/mangas".toUri().buildUpon()
val urlAnimes = "$apiUrl/animes".toUri().buildUpon()
.appendPath(track.remote_id.toString())
.build()
val animes = with(json) {
Expand Down

0 comments on commit 58817c7

Please sign in to comment.