From cb1cf8f2d803a8b8b6b7ff6a71a961acecd0e512 Mon Sep 17 00:00:00 2001 From: jopejoe1 <34899572+jopejoe1@users.noreply.github.com> Date: Tue, 1 Feb 2022 01:11:46 +1300 Subject: [PATCH] Dragon Ball Multiverse fix Chapter list (#10620) * Update DbMultiverse.kt * Update DbMFactory.kt * Delete DbMultiverseEN.kt * Update build.gradle * Add mssing language * Forgot a , while adding a new lang --- src/all/dragonball_multiverse/build.gradle | 2 +- .../extension/all/dragonball_multiverse/DbMFactory.kt | 5 ++++- .../extension/all/dragonball_multiverse/DbMultiverse.kt | 6 +++--- .../extension/en/dragonball_multiverse/DbMultiverseEN.kt | 3 --- 4 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/en/dragonball_multiverse/DbMultiverseEN.kt diff --git a/src/all/dragonball_multiverse/build.gradle b/src/all/dragonball_multiverse/build.gradle index fea148174..8b2f0f756 100644 --- a/src/all/dragonball_multiverse/build.gradle +++ b/src/all/dragonball_multiverse/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Dragon Ball Multiverse' pkgNameSuffix = 'all.dragonball_multiverse' extClass = '.DbMFactory' - extVersionCode = 4 + extVersionCode = 5 } apply from: "$rootDir/common.gradle" diff --git a/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/all/dragonball_multiverse/DbMFactory.kt b/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/all/dragonball_multiverse/DbMFactory.kt index cde0b0b2f..1a8a44819 100644 --- a/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/all/dragonball_multiverse/DbMFactory.kt +++ b/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/all/dragonball_multiverse/DbMFactory.kt @@ -42,10 +42,12 @@ class DbMFactory : SourceFactory { DbMultiverseDA_DK(), DbMultiverseCO_FR(), DbMultiverseBR_FR(), - DbMultiverseXX_VE() + DbMultiverseXX_VE(), + DbMultiverseXX_LMO() ) } +class DbMultiverseEN : DbMultiverse("en", "en") class DbMultiverseFR : DbMultiverse("fr", "fr") class DbMultiverseJP : DbMultiverse("ja", "jp") class DbMultiverseCN : DbMultiverse("zh", "cn") @@ -81,3 +83,4 @@ class DbMultiverseDA_DK : DbMultiverse("da", "da_DK") class DbMultiverseCO_FR : DbMultiverse("co", "co_FR") class DbMultiverseBR_FR : DbMultiverse("br", "br_FR") class DbMultiverseXX_VE : DbMultiverse("vec", "xx_VE") +class DbMultiverseXX_LMO : DbMultiverse("lmo", "xx_LMO") diff --git a/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/all/dragonball_multiverse/DbMultiverse.kt b/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/all/dragonball_multiverse/DbMultiverse.kt index 8585ade04..6549da149 100644 --- a/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/all/dragonball_multiverse/DbMultiverse.kt +++ b/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/all/dragonball_multiverse/DbMultiverse.kt @@ -24,13 +24,13 @@ abstract class DbMultiverse(override val lang: String, private val internalLang: val chapter = SChapter.create() val href = element.attr("href") chapter.setUrlWithoutDomain("/$internalLang/$href") - chapter.name = href.substringBefore(".html").replace("-", " ") + chapter.name = "Page " + element.text() return chapter } - override fun chapterListSelector(): String = ".cadrelect.chapters p a[href*=-]" - + override fun chapterListSelector(): String = ".cadrelect.chapter p a[href*=-]" + override fun chapterListParse(response: Response): List { return super.chapterListParse(response).reversed() } diff --git a/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/en/dragonball_multiverse/DbMultiverseEN.kt b/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/en/dragonball_multiverse/DbMultiverseEN.kt deleted file mode 100644 index 75f623e45..000000000 --- a/src/all/dragonball_multiverse/src/eu/kanade/tachiyomi/extension/en/dragonball_multiverse/DbMultiverseEN.kt +++ /dev/null @@ -1,3 +0,0 @@ -package eu.kanade.tachiyomi.extension.all.dragonball_multiverse - -class DbMultiverseEN : DbMultiverse("en", "en")