Mangadex: add missing sort options (#9043)

* added Missing sort options

* Update build.gradle

* Improved latestUpdatesRequest

latestUpdatesRequest does not require the previous work around anymore as latestUploadedChapter sort order was added to the api

* Fixed Typo
This commit is contained in:
Johannes Joens 2021-09-17 01:28:59 +12:00 committed by GitHub
parent 72ca3d3781
commit d8bcdd11c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory'
extVersionCode = 136
extVersionCode = 137
containsNsfw = true
}

View File

@ -191,10 +191,13 @@ class MangaDexFilters {
Filter.Select<String>("Excluded tags mode", arrayOf("And", "Or"), 1)
val sortableList = listOf(
Pair("Alphabetic", "title"),
Pair("Chapter uploaded at", "latestUploadedChapter"),
Pair("Number of follows", "followedCount"),
Pair("Manga created at", "createdAt"),
Pair("Manga info updated at", "updatedAt"),
Pair("Relevant manga", "relevance")
Pair("Relevant manga", "relevance"),
Pair("Year", "year")
)
class SortFilter(sortables: Array<String>) : Filter.Sort("Sort", sortables, Selection(0, false))