DragonBallMultiverse hotfix: fix pages (#9016)

* fix chapter url

should just stick to using `setUrlWithoutDomain` everywhere possible

* increment dbm.extversioncode
This commit is contained in:
nicki 2021-09-09 18:20:42 +05:30 committed by GitHub
parent c3849f0e3b
commit 11b5df29a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Dragon Ball Multiverse'
pkgNameSuffix = 'all.dragonball_multiverse'
extClass = '.DbMFactory'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -23,7 +23,7 @@ abstract class DbMultiverse(override val lang: String, private val internalLang:
override fun chapterFromElement(element: Element): SChapter {
val chapter = SChapter.create()
val href = element.attr("href")
chapter.url = "$baseUrl/$internalLang/$href"
chapter.setUrlWithoutDomain("/$internalLang/$href")
chapter.name = href.substringBefore(".html").replace("-", " ")
return chapter