add more languages and isekai genre

This commit is contained in:
paronos 2018-04-25 23:52:26 +02:00
parent cbc497c06f
commit c4ae98e663
3 changed files with 15 additions and 4 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: MangaDex'
pkgNameSuffix = "all.mangadex"
extClass = '.MangadexFactory'
extVersionCode = 21
extVersionSuffix = 21
extVersionCode = 22
extVersionSuffix = 22
libVersion = '1.2'
}

View File

@ -367,7 +367,8 @@ open class Mangadex(override val lang: String, private val internalLang: String,
Genre("37", "Yaoi"),
Genre("38", "Yuri"),
Genre("39", "[no chapters]"),
Genre("40", "Game")
Genre("40", "Game"),
Genre("41", "Isekai")
)
companion object {

View File

@ -20,6 +20,11 @@ class MangaDexCatalan : Mangadex("ca", "ct", 33)
class MangaDexHungarian : Mangadex("hu", "hu", 9)
class MangaDexBulgarian : Mangadex("bg", "bg", 14)
class MangaDexFilipino : Mangadex("fil", "ph", 34)
class MangaDexDutch : Mangadex("nl", "nl", 5)
class MangaDexArabic : Mangadex("ar", "sa", 19)
class MangaDexChineseSimp : Mangadex("zh-Hans", "cn", 21)
class MangaDexChineseTrad : Mangadex("zh-Hant", "hk", 35)
class MangaDexThai: Mangadex("th", "th", 32)
fun getAllMangaDexLanguages() = listOf(
MangaDexEnglish(),
@ -38,5 +43,10 @@ fun getAllMangaDexLanguages() = listOf(
MangaDexCatalan(),
MangaDexHungarian(),
MangaDexBulgarian(),
MangaDexFilipino()
MangaDexFilipino(),
MangaDexDutch(),
MangaDexArabic(),
MangaDexChineseSimp(),
MangaDexChineseTrad(),
MangaDexThai()
)