mangago: reorder genres back to website order (#361)
This commit is contained in:
parent
32b76e6d8c
commit
0fa0a8dd51
|
@ -5,8 +5,8 @@ ext {
|
|||
appName = 'Tachiyomi: Mangago'
|
||||
pkgNameSuffix = "en.mangago"
|
||||
extClass = '.Mangago'
|
||||
extVersionCode = 4
|
||||
extVersionSuffix = 3
|
||||
extVersionCode = 5
|
||||
extVersionSuffix = 4
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -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')
|
||||
// on http://www.mangago.me/genre/all/
|
||||
private class GenreGroup : UriFilterGroup<GenreFilter>("Genres", listOf(
|
||||
GenreFilter("Action"),
|
||||
GenreFilter("Adult"),
|
||||
GenreFilter("Adventure"),
|
||||
GenreFilter("Bara"),
|
||||
GenreFilter("Comedy"),
|
||||
GenreFilter("Yaoi"),
|
||||
GenreFilter("Doujinshi"),
|
||||
GenreFilter("Drama"),
|
||||
GenreFilter("Ecchi"),
|
||||
GenreFilter("Shounen Ai"),
|
||||
GenreFilter("Shoujo"),
|
||||
GenreFilter("Yuri"),
|
||||
GenreFilter("Romance"),
|
||||
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("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("Supernatural"),
|
||||
GenreFilter("Gender Bender"),
|
||||
GenreFilter("Tragedy"),
|
||||
GenreFilter("Webtoons"),
|
||||
GenreFilter("Yaoi"),
|
||||
GenreFilter("Yuri")
|
||||
GenreFilter("Bara"),
|
||||
GenreFilter("Shotacon"),
|
||||
GenreFilter("Webtoons")
|
||||
|
||||
))
|
||||
|
||||
private class GenreFilter(name: String) : Filter.TriState(name)
|
||||
|
@ -392,6 +393,7 @@ var l = "18a72a69a64a13a1a43a3aa42a23a66a26a19a51a54a78a34a17a31a35a15a58a29a61a
|
|||
return result;
|
||||
})();
|
||||
"""
|
||||
|
||||
// Allow destructuring up to 6 items for lists
|
||||
private operator fun <T> List<T>.component6() = get(5)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue