From 26ea75c18a97e5c352888dcc799757c6a30b8e77 Mon Sep 17 00:00:00 2001 From: Eugene Date: Sun, 10 Jun 2018 23:17:02 -0400 Subject: [PATCH] Update Mangago genres (#355) Update Mangago genres --- src/en/mangago/build.gradle | 4 +- .../tachiyomi/extension/en/mangago/Mangago.kt | 46 ++++++++++--------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/src/en/mangago/build.gradle b/src/en/mangago/build.gradle index 7141b3547..9be476818 100644 --- a/src/en/mangago/build.gradle +++ b/src/en/mangago/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: Mangago' pkgNameSuffix = "en.mangago" extClass = '.Mangago' - extVersionCode = 3 - extVersionSuffix = 2 + extVersionCode = 4 + extVersionSuffix = 3 libVersion = '1.2' } diff --git a/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt b/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt index c3dcbc62e..0de3cc35f 100644 --- a/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt +++ b/src/en/mangago/src/eu/kanade/tachiyomi/extension/en/mangago/Mangago.kt @@ -219,42 +219,46 @@ class Mangago : ParsedHttpSource() { SortFilter() ) + // Array.from(document.querySelectorAll('#genre_panel ul li:not(.genres_title) a')).map(a => `GenreFilter("${a.getAttribute('_id')}")`).sort().join(',\n') + // on http://www.mangago.me/genre/all/ private class GenreGroup : UriFilterGroup("Genres", listOf( - GenreFilter("Yaoi"), - GenreFilter("Doujinshi"), - GenreFilter("Shounen Ai"), - GenreFilter("Shoujo"), - GenreFilter("Yuri"), - GenreFilter("Romance"), - GenreFilter("Fantasy"), - GenreFilter("Smut"), - GenreFilter("Adult"), - GenreFilter("School Life"), - GenreFilter("Mystery"), - GenreFilter("Comedy"), - GenreFilter("Ecchi"), - GenreFilter("Shounen"), - GenreFilter("Martial Arts"), - GenreFilter("Shoujo Ai"), - GenreFilter("Supernatural"), - GenreFilter("Drama"), GenreFilter("Action"), + GenreFilter("Adult"), GenreFilter("Adventure"), + GenreFilter("Bara"), + GenreFilter("Comedy"), + GenreFilter("Doujinshi"), + GenreFilter("Drama"), + GenreFilter("Ecchi"), + GenreFilter("Fantasy"), + GenreFilter("Gender Bender"), GenreFilter("Harem"), GenreFilter("Historical"), GenreFilter("Horror"), GenreFilter("Josei"), + GenreFilter("Martial Arts"), GenreFilter("Mature"), GenreFilter("Mecha"), + GenreFilter("Mystery"), + GenreFilter("One Shot"), GenreFilter("Psychological"), + GenreFilter("Romance"), + GenreFilter("School Life"), GenreFilter("Sci-fi"), GenreFilter("Seinen"), + GenreFilter("Shotacon"), + GenreFilter("Shoujo Ai"), + GenreFilter("Shoujo"), + GenreFilter("Shounen Ai"), + GenreFilter("Shounen"), GenreFilter("Slice Of Life"), + GenreFilter("Smut"), GenreFilter("Sports"), - GenreFilter("Gender Bender"), + GenreFilter("Supernatural"), GenreFilter("Tragedy"), - GenreFilter("Bara"), - GenreFilter("Shotacon") + GenreFilter("Webtoons"), + GenreFilter("Yaoi"), + GenreFilter("Yuri") )) private class GenreFilter(name: String) : Filter.TriState(name)