From f9ac810129590a3df771acef88dd754b90b7b73c Mon Sep 17 00:00:00 2001 From: Eugene <35057681+e-shl@users.noreply.github.com> Date: Thu, 14 Jan 2021 16:44:56 +0500 Subject: [PATCH] remanga double name title (#5413) * remanga double name title * fix --- src/ru/remanga/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ru/remanga/build.gradle b/src/ru/remanga/build.gradle index a6f89202c..1520b3093 100644 --- a/src/ru/remanga/build.gradle +++ b/src/ru/remanga/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Remanga' pkgNameSuffix = 'ru.remanga' extClass = '.Remanga' - extVersionCode = 11 + extVersionCode = 12 libVersion = '1.2' } diff --git a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt index e51cd48bb..ca3bfd883 100644 --- a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt +++ b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt @@ -134,7 +134,7 @@ class Remanga : ConfigurableSource, HttpSource() { private fun LibraryDto.toSManga(): SManga = SManga.create().apply { - title = rus_name + title = en_name + "\n" + rus_name url = "/api/titles/$dir/" thumbnail_url = "$baseUrl/${img.high}" } @@ -210,7 +210,7 @@ class Remanga : ConfigurableSource, HttpSource() { private fun MangaDetDto.toSManga(): SManga { val o = this return SManga.create().apply { - title = rus_name + title = en_name + "\n" + rus_name url = "/api/titles/$dir/" thumbnail_url = "$baseUrl/${img.high}" this.description = Jsoup.parse(o.description).text() @@ -238,7 +238,7 @@ class Remanga : ConfigurableSource, HttpSource() { override fun mangaDetailsParse(response: Response): SManga { val series = gson.fromJson>(response.body()?.charStream()!!) - branches[series.content.rus_name] = series.content.branches + branches[series.content.en_name] = series.content.branches return series.content.toSManga() } @@ -247,7 +247,7 @@ class Remanga : ConfigurableSource, HttpSource() { // manga requiring login return "content" as a JsonArray instead of the JsonObject we expect return if (gson.fromJson(responseString)["content"].isJsonObject) { val series = gson.fromJson>(responseString) - branches[series.content.rus_name] = series.content.branches + branches[series.content.en_name] = series.content.branches series.content.branches } else { emptyList()