Minor fix rus extensions (#4393)

This commit is contained in:
Eugene 2020-09-18 16:52:39 +05:00 committed by GitHub
parent 56a540483e
commit d7e5ab005a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaLib'
pkgNameSuffix = 'ru.libmanga'
extClass = '.LibManga'
extVersionCode = 21
extVersionCode = 22
libVersion = '1.2'
}

View File

@ -325,7 +325,7 @@ class LibManga : ConfigurableSource, HttpSource() {
}
is GenreList -> filter.state.forEach { genre ->
if (genre.state != Filter.TriState.STATE_IGNORE) {
url.addQueryParameter(if (genre.isIncluded()) "includeGenres[]" else "excludeGenres[]", genre.id)
url.addQueryParameter(if (genre.isIncluded()) "genres[include][]" else "genres[exclude][]", genre.id)
}
}
is OrderBy -> {

View File

@ -5,7 +5,7 @@ ext {
extName = 'Remanga'
pkgNameSuffix = 'ru.remanga'
extClass = '.Remanga'
extVersionCode = 6
extVersionCode = 7
libVersion = '1.2'
}

View File

@ -162,8 +162,8 @@ class Remanga : ConfigurableSource, HttpSource() {
(if (filters.isEmpty()) getFilterList() else filters).forEach { filter ->
when (filter) {
is OrderBy -> {
val ord = arrayOf("id", "chapter_date", "rating", "votes", "views", "random")[filter.state!!.index]
url.addQueryParameter("ordering", if (filter.state!!.ascending) "-$ord" else ord)
val ord = arrayOf("id", "chapter_date", "rating", "votes", "views", "ount_chapters", "random")[filter.state!!.index]
url.addQueryParameter("ordering", if (filter.state!!.ascending) "$ord" else "-$ord")
}
is CategoryList -> filter.state.forEach { category ->
if (category.state != Filter.TriState.STATE_IGNORE) {
@ -400,7 +400,7 @@ class Remanga : ConfigurableSource, HttpSource() {
private class OrderBy : Filter.Sort(
"Сортировка",
arrayOf("Новизне", "Последним обновлениям", "Популярности", "Лайкам", "Просмотрам", "Мне повезет"),
arrayOf("Новизне", "Последним обновлениям", "Популярности", "Лайкам", "Просмотрам", "По кол-ву глав", "Мне повезет"),
Selection(2, false)
)