diff --git a/src/all/komga/CHANGELOG.md b/src/all/komga/CHANGELOG.md index aa32fe8ab..b0c30f185 100644 --- a/src/all/komga/CHANGELOG.md +++ b/src/all/komga/CHANGELOG.md @@ -1,3 +1,24 @@ +## 1.2.33 + +Minimum Komga version required: `0.113.0` + +### Fix + +* Open in WebView and Share options now open regular browser link instead of showing JSON +* Note that Komga cannot be viewed using System WebView since there is no login prompt + However, opening in a regular browser works. + +## 1.2.32 + +Minimum Komga version required: `0.113.0` + +### Fix + +* Source language, conventionally set to "en", is now changed to "all" +* Downloaded files, if any, will have to be moved to new location + - `Komga (EN)` to `Komga (ALL)` + - `Komga (3) (EN)` to `Komga (3) (ALL)` + ## 1.2.31 Minimum Komga version required: `0.113.0` diff --git a/src/all/komga/build.gradle b/src/all/komga/build.gradle index 1cc7000b6..41805e14a 100644 --- a/src/all/komga/build.gradle +++ b/src/all/komga/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Komga' pkgNameSuffix = 'all.komga' extClass = '.KomgaFactory' - extVersionCode = 32 + extVersionCode = 33 } dependencies { diff --git a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt index d4df72492..e01414396 100644 --- a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt +++ b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt @@ -15,6 +15,7 @@ import eu.kanade.tachiyomi.extension.all.komga.dto.PageWrapperDto import eu.kanade.tachiyomi.extension.all.komga.dto.ReadListDto import eu.kanade.tachiyomi.extension.all.komga.dto.SeriesDto import eu.kanade.tachiyomi.network.GET +import eu.kanade.tachiyomi.network.asObservableSuccess import eu.kanade.tachiyomi.source.ConfigurableSource import eu.kanade.tachiyomi.source.model.Filter import eu.kanade.tachiyomi.source.model.FilterList @@ -33,6 +34,7 @@ import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.Response import okhttp3.ResponseBody +import rx.Observable import rx.Single import rx.android.schedulers.AndroidSchedulers import rx.schedulers.Schedulers @@ -175,8 +177,16 @@ open class Komga(suffix: String = "") : ConfigurableSource, HttpSource() { override fun searchMangaParse(response: Response): MangasPage = processSeriesPage(response) + override fun fetchMangaDetails(manga: SManga): Observable { + return client.newCall(GET(manga.url, headers)) + .asObservableSuccess() + .map { response -> + mangaDetailsParse(response).apply { initialized = true } + } + } + override fun mangaDetailsRequest(manga: SManga): Request = - GET(manga.url, headers) + GET(manga.url.replaceFirst("api/v1/", "", ignoreCase = true), headers) override fun mangaDetailsParse(response: Response): SManga { val responseBody = response.body