Merge pull request #310 from paronos/magadex

mangadex: add more languages and isekai genre
This commit is contained in:
Carlos 2018-04-26 00:35:38 -04:00 committed by GitHub
commit 7786fa9f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 4 deletions

View File

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

View File

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

View File

@ -20,6 +20,11 @@ class MangaDexCatalan : Mangadex("ca", "ct", 33)
class MangaDexHungarian : Mangadex("hu", "hu", 9) class MangaDexHungarian : Mangadex("hu", "hu", 9)
class MangaDexBulgarian : Mangadex("bg", "bg", 14) class MangaDexBulgarian : Mangadex("bg", "bg", 14)
class MangaDexFilipino : Mangadex("fil", "ph", 34) 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( fun getAllMangaDexLanguages() = listOf(
MangaDexEnglish(), MangaDexEnglish(),
@ -38,5 +43,10 @@ fun getAllMangaDexLanguages() = listOf(
MangaDexCatalan(), MangaDexCatalan(),
MangaDexHungarian(), MangaDexHungarian(),
MangaDexBulgarian(), MangaDexBulgarian(),
MangaDexFilipino() MangaDexFilipino(),
MangaDexDutch(),
MangaDexArabic(),
MangaDexChineseSimp(),
MangaDexChineseTrad(),
MangaDexThai()
) )