DragonBallMultiverse hotfix: fix pages (#9016)
* fix chapter url should just stick to using `setUrlWithoutDomain` everywhere possible * increment dbm.extversioncode
This commit is contained in:
parent
c3849f0e3b
commit
11b5df29a7
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Dragon Ball Multiverse'
|
extName = 'Dragon Ball Multiverse'
|
||||||
pkgNameSuffix = 'all.dragonball_multiverse'
|
pkgNameSuffix = 'all.dragonball_multiverse'
|
||||||
extClass = '.DbMFactory'
|
extClass = '.DbMFactory'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ abstract class DbMultiverse(override val lang: String, private val internalLang:
|
||||||
override fun chapterFromElement(element: Element): SChapter {
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
val href = element.attr("href")
|
val href = element.attr("href")
|
||||||
chapter.url = "$baseUrl/$internalLang/$href"
|
chapter.setUrlWithoutDomain("/$internalLang/$href")
|
||||||
chapter.name = href.substringBefore(".html").replace("-", " ")
|
chapter.name = href.substringBefore(".html").replace("-", " ")
|
||||||
|
|
||||||
return chapter
|
return chapter
|
||||||
|
|
Loading…
Reference in New Issue