[Mangadex] Adding Langauge to genres (#2323)
[MangaDex] Adding Manga language to list of genres
This commit is contained in:
parent
b1a291fae9
commit
24bb1c5474
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangadexFactory'
|
||||
extVersionCode = 83
|
||||
extVersionCode = 84
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -395,7 +395,8 @@ abstract class Mangadex(
|
|||
}
|
||||
|
||||
val genres = (if (mangaJson.get("hentai").int == 1) listOf("Hentai") else listOf()) +
|
||||
mangaJson.get("genres").asJsonArray.mapNotNull { GENRES[it.toString()] }
|
||||
mangaJson.get("genres").asJsonArray.mapNotNull { GENRES[it.toString()] } +
|
||||
mangaJson.get("lang_name").string
|
||||
manga.genre = genres.joinToString(", ")
|
||||
|
||||
return manga
|
||||
|
|
Loading…
Reference in New Issue