Lint
(cherry picked from commit 58085336a5399a066b04baf679445bb0e047cc5d)
This commit is contained in:
parent
ca944f3f38
commit
b210491db5
@ -31,7 +31,10 @@ class BangumiInterceptor(private val bangumi: Bangumi) : Interceptor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return originalRequest.newBuilder()
|
return originalRequest.newBuilder()
|
||||||
.header("User-Agent", "jobobby04/TachiyomiSY/v${BuildConfig.VERSION_NAME} (Android) (http://github.com/jobobby04/tachiyomisy)")
|
.header(
|
||||||
|
"User-Agent",
|
||||||
|
"jobobby04/TachiyomiSY/v${BuildConfig.VERSION_NAME} (Android) (http://github.com/jobobby04/tachiyomisy)",
|
||||||
|
)
|
||||||
.apply {
|
.apply {
|
||||||
if (originalRequest.method == "GET") {
|
if (originalRequest.method == "GET") {
|
||||||
val newUrl = originalRequest.url.newBuilder()
|
val newUrl = originalRequest.url.newBuilder()
|
||||||
|
@ -51,7 +51,9 @@ class KomgaApi(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val progress = client
|
val progress = client
|
||||||
.newCall(GET("${url.replace("/api/v1/series/", "/api/v2/series/")}/read-progress/tachiyomi", headers))
|
.newCall(
|
||||||
|
GET("${url.replace("/api/v1/series/", "/api/v2/series/")}/read-progress/tachiyomi", headers),
|
||||||
|
)
|
||||||
.awaitSuccess().let {
|
.awaitSuccess().let {
|
||||||
with(json) {
|
with(json) {
|
||||||
if (url.contains("/api/v1/series/")) {
|
if (url.contains("/api/v1/series/")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user