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
This commit is contained in:
parent
fde7501b92
commit
cb1cf8f2d8
|
@ -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 = 4
|
extVersionCode = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -42,10 +42,12 @@ class DbMFactory : SourceFactory {
|
||||||
DbMultiverseDA_DK(),
|
DbMultiverseDA_DK(),
|
||||||
DbMultiverseCO_FR(),
|
DbMultiverseCO_FR(),
|
||||||
DbMultiverseBR_FR(),
|
DbMultiverseBR_FR(),
|
||||||
DbMultiverseXX_VE()
|
DbMultiverseXX_VE(),
|
||||||
|
DbMultiverseXX_LMO()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class DbMultiverseEN : DbMultiverse("en", "en")
|
||||||
class DbMultiverseFR : DbMultiverse("fr", "fr")
|
class DbMultiverseFR : DbMultiverse("fr", "fr")
|
||||||
class DbMultiverseJP : DbMultiverse("ja", "jp")
|
class DbMultiverseJP : DbMultiverse("ja", "jp")
|
||||||
class DbMultiverseCN : DbMultiverse("zh", "cn")
|
class DbMultiverseCN : DbMultiverse("zh", "cn")
|
||||||
|
@ -81,3 +83,4 @@ class DbMultiverseDA_DK : DbMultiverse("da", "da_DK")
|
||||||
class DbMultiverseCO_FR : DbMultiverse("co", "co_FR")
|
class DbMultiverseCO_FR : DbMultiverse("co", "co_FR")
|
||||||
class DbMultiverseBR_FR : DbMultiverse("br", "br_FR")
|
class DbMultiverseBR_FR : DbMultiverse("br", "br_FR")
|
||||||
class DbMultiverseXX_VE : DbMultiverse("vec", "xx_VE")
|
class DbMultiverseXX_VE : DbMultiverse("vec", "xx_VE")
|
||||||
|
class DbMultiverseXX_LMO : DbMultiverse("lmo", "xx_LMO")
|
||||||
|
|
|
@ -24,12 +24,12 @@ abstract class DbMultiverse(override val lang: String, private val internalLang:
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
val href = element.attr("href")
|
val href = element.attr("href")
|
||||||
chapter.setUrlWithoutDomain("/$internalLang/$href")
|
chapter.setUrlWithoutDomain("/$internalLang/$href")
|
||||||
chapter.name = href.substringBefore(".html").replace("-", " ")
|
chapter.name = "Page " + element.text()
|
||||||
|
|
||||||
return chapter
|
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<SChapter> {
|
override fun chapterListParse(response: Response): List<SChapter> {
|
||||||
return super.chapterListParse(response).reversed()
|
return super.chapterListParse(response).reversed()
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
package eu.kanade.tachiyomi.extension.all.dragonball_multiverse
|
|
||||||
|
|
||||||
class DbMultiverseEN : DbMultiverse("en", "en")
|
|
Loading…
Reference in New Issue