mangago: reorder genres back to website order (#361)

This commit is contained in:
Carlos 2018-06-12 08:35:43 -04:00 committed by GitHub
parent 32b76e6d8c
commit 0fa0a8dd51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 26 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 = 4 extVersionCode = 5
extVersionSuffix = 3 extVersionSuffix = 4
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -222,43 +222,44 @@ class Mangago : ParsedHttpSource() {
// Array.from(document.querySelectorAll('#genre_panel ul li:not(.genres_title) a')).map(a => `GenreFilter("${a.getAttribute('_id')}")`).sort().join(',\n') // 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/ // on http://www.mangago.me/genre/all/
private class GenreGroup : UriFilterGroup<GenreFilter>("Genres", listOf( private class GenreGroup : UriFilterGroup<GenreFilter>("Genres", listOf(
GenreFilter("Action"), GenreFilter("Yaoi"),
GenreFilter("Adult"),
GenreFilter("Adventure"),
GenreFilter("Bara"),
GenreFilter("Comedy"),
GenreFilter("Doujinshi"), GenreFilter("Doujinshi"),
GenreFilter("Drama"), GenreFilter("Shounen Ai"),
GenreFilter("Ecchi"), GenreFilter("Shoujo"),
GenreFilter("Yuri"),
GenreFilter("Romance"),
GenreFilter("Fantasy"), GenreFilter("Fantasy"),
GenreFilter("Gender Bender"), GenreFilter("Comedy"),
GenreFilter("Smut"),
GenreFilter("Adult"),
GenreFilter("School Life"),
GenreFilter("Mystery"),
GenreFilter("One Shot"),
GenreFilter("Ecchi"),
GenreFilter("Shounen"),
GenreFilter("Martial Arts"),
GenreFilter("Shoujo Ai"),
GenreFilter("Supernatural"),
GenreFilter("Drama"),
GenreFilter("Action"),
GenreFilter("Adventure"),
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("Supernatural"), GenreFilter("Gender Bender"),
GenreFilter("Tragedy"), GenreFilter("Tragedy"),
GenreFilter("Webtoons"), GenreFilter("Bara"),
GenreFilter("Yaoi"), GenreFilter("Shotacon"),
GenreFilter("Yuri") GenreFilter("Webtoons")
)) ))
private class GenreFilter(name: String) : Filter.TriState(name) private class GenreFilter(name: String) : Filter.TriState(name)
@ -392,6 +393,7 @@ var l = "18a72a69a64a13a1a43a3aa42a23a66a26a19a51a54a78a34a17a31a35a15a58a29a61a
return result; return result;
})(); })();
""" """
// Allow destructuring up to 6 items for lists // Allow destructuring up to 6 items for lists
private operator fun <T> List<T>.component6() = get(5) private operator fun <T> List<T>.component6() = get(5)
} }