From 51d36e0cf012560bddd272bfd467e59ee468d9bb Mon Sep 17 00:00:00 2001 From: ab2897 <131226647+ab2897@users.noreply.github.com> Date: Wed, 19 Apr 2023 07:38:30 -0700 Subject: [PATCH] Fixed buggy chapter number in MangaBuddy(MadTheme) (#16104) --- .../main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt | 1 - .../eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt index 7a778944d..cf073c76b 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt @@ -206,7 +206,6 @@ abstract class MadTheme( name = element.select(".chapter-title").first()!!.text() date_upload = parseChapterDate(element.select(".chapter-update").first()?.text()) - chapter_number = name.substringAfterLast(' ').toFloatOrNull() ?: -1f } // Pages diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt index 2bddeed74..053c7a9a6 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt @@ -9,7 +9,7 @@ class MadThemeGenerator : ThemeSourceGenerator { override val themeClass = "MadTheme" - override val baseVersionCode: Int = 12 + override val baseVersionCode: Int = 13 override val sources = listOf( SingleLang("BeeHentai", "https://beehentai.com", "en", isNsfw = true),