nhentai: Filtering by pages (#8260)

* Added page filter

* Updated version
This commit is contained in:
Arraiment 2021-07-26 19:29:33 +08:00 committed by GitHub
parent 00ea53d59c
commit 8bb02faff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'NHentai'
pkgNameSuffix = 'all.nhentai'
extClass = '.NHFactory'
extVersionCode = 28
extVersionCode = 29
libVersion = '1.2'
containsNsfw = true
}

View File

@ -258,6 +258,8 @@ open class NHentai(
Filter.Header("Uploaded valid units are h, d, w, m, y."),
Filter.Header("example: (>20d)"),
UploadedFilter(),
Filter.Header("Filter by pages, for example: (>20)"),
PagesFilter(),
Filter.Separator(),
SortFilter(),
@ -272,6 +274,7 @@ open class NHentai(
class ParodyFilter : AdvSearchEntryFilter("Parodies")
class CharactersFilter : AdvSearchEntryFilter("Characters")
class UploadedFilter : AdvSearchEntryFilter("Uploaded")
class PagesFilter : AdvSearchEntryFilter("Pages")
open class AdvSearchEntryFilter(name: String) : Filter.Text(name)
override fun imageUrlParse(document: Document) = throw UnsupportedOperationException("Not used")