E-Hentai added Watched list (#2392)

E-Hentai added Watched list
This commit is contained in:
jobobby04 2020-03-08 18:42:02 -04:00 committed by GitHub
parent c1f6672bb6
commit 53bc937198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: E-Hentai'
pkgNameSuffix = 'all.ehentai'
extClass = '.EHFactory'
extVersionCode = 7
extVersionCode = 8
libVersion = '1.2'
}

View File

@ -280,9 +280,16 @@ open class EHentai(override val lang: String, private val ehLang: String) : Http
//Filters
override fun getFilterList() = FilterList(
Watched(),
GenreGroup(),
AdvancedGroup()
)
class Watched : Filter.CheckBox("Watched List"), UriFilter {
override fun addToUri(builder: Uri.Builder) {
builder.appendPath("watched")
}
}
class GenreOption(name: String, private val genreId: String) : Filter.CheckBox(name, false), UriFilter {
override fun addToUri(builder: Uri.Builder) {