Skip to content

Commit

Permalink
Merge remote-tracking branch 'animiru/retired-code' into retired-code
Browse files Browse the repository at this point in the history
  • Loading branch information
quickdesh committed Jun 11, 2024
2 parents 6dfe741 + 0e89196 commit 9f23fae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import okhttp3.OkHttpClient
import okhttp3.RequestBody.Companion.toRequestBody
import tachiyomi.core.util.lang.withIOContext
import uy.kohesive.injekt.injectLazy
import tachiyomi.domain.track.anime.model.AnimeTrack as DomainAnimeTrack

class ShikimoriApi(
private val trackId: Long,
Expand Down Expand Up @@ -72,14 +73,11 @@ class ShikimoriApi(
userId,
)

suspend fun deleteLibAnime(track: AnimeTrack): AnimeTrack {
return withIOContext {
authClient.newCall(
DELETE(
"$apiUrl/v2/user_rates/${track.library_id}",
),
).awaitSuccess()
track
suspend fun deleteLibAnime(track: DomainAnimeTrack) {
withIOContext {
authClient
.newCall(DELETE("$apiUrl/v2/user_rates/${track.libraryId}"))
.awaitSuccess()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import okhttp3.Interceptor
import okhttp3.Response
import uy.kohesive.injekt.injectLazy

class ShikimoriInterceptor(val shikimori: Shikimori) : Interceptor {
class ShikimoriInterceptor(private val shikimori: Shikimori) : Interceptor {

private val json: Json by injectLazy()

Expand Down

0 comments on commit 9f23fae

Please sign in to comment.