Update Mangago genres (#355)

Update Mangago genres
This commit is contained in:
Eugene 2018-06-10 23:17:02 -04:00 committed by Carlos
parent 4a8d233fe6
commit 26ea75c18a
2 changed files with 27 additions and 23 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: Mangago' appName = 'Tachiyomi: Mangago'
pkgNameSuffix = "en.mangago" pkgNameSuffix = "en.mangago"
extClass = '.Mangago' extClass = '.Mangago'
extVersionCode = 3 extVersionCode = 4
extVersionSuffix = 2 extVersionSuffix = 3
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -219,42 +219,46 @@ class Mangago : ParsedHttpSource() {
SortFilter() 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<GenreFilter>("Genres", listOf( private class GenreGroup : UriFilterGroup<GenreFilter>("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("Action"),
GenreFilter("Adult"),
GenreFilter("Adventure"), GenreFilter("Adventure"),
GenreFilter("Bara"),
GenreFilter("Comedy"),
GenreFilter("Doujinshi"),
GenreFilter("Drama"),
GenreFilter("Ecchi"),
GenreFilter("Fantasy"),
GenreFilter("Gender Bender"),
GenreFilter("Harem"), GenreFilter("Harem"),
GenreFilter("Historical"), GenreFilter("Historical"),
GenreFilter("Horror"), GenreFilter("Horror"),
GenreFilter("Josei"), GenreFilter("Josei"),
GenreFilter("Martial Arts"),
GenreFilter("Mature"), GenreFilter("Mature"),
GenreFilter("Mecha"), GenreFilter("Mecha"),
GenreFilter("Mystery"),
GenreFilter("One Shot"),
GenreFilter("Psychological"), GenreFilter("Psychological"),
GenreFilter("Romance"),
GenreFilter("School Life"),
GenreFilter("Sci-fi"), GenreFilter("Sci-fi"),
GenreFilter("Seinen"), GenreFilter("Seinen"),
GenreFilter("Shotacon"),
GenreFilter("Shoujo Ai"),
GenreFilter("Shoujo"),
GenreFilter("Shounen Ai"),
GenreFilter("Shounen"),
GenreFilter("Slice Of Life"), GenreFilter("Slice Of Life"),
GenreFilter("Smut"),
GenreFilter("Sports"), GenreFilter("Sports"),
GenreFilter("Gender Bender"), GenreFilter("Supernatural"),
GenreFilter("Tragedy"), GenreFilter("Tragedy"),
GenreFilter("Bara"), GenreFilter("Webtoons"),
GenreFilter("Shotacon") GenreFilter("Yaoi"),
GenreFilter("Yuri")
)) ))
private class GenreFilter(name: String) : Filter.TriState(name) private class GenreFilter(name: String) : Filter.TriState(name)