From 24bb1c547435263850dad9ccb9d1d405017bd82b Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Sun, 1 Mar 2020 02:58:47 -0800 Subject: [PATCH] [Mangadex] Adding Langauge to genres (#2323) [MangaDex] Adding Manga language to list of genres --- src/all/mangadex/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index e44ac9c7a..b071341d5 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangadexFactory' - extVersionCode = 83 + extVersionCode = 84 libVersion = '1.2' } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt index 648fce2db..54ce2f605 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt @@ -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