Added Ehentai Watched list (#1)

This commit is contained in:
jobobby04 2020-03-08 16:34:08 -04:00 committed by Jobobby04
parent cefe45e8cc
commit acf879d28c

View File

@ -578,11 +578,18 @@ class EHentai(override val id: Long,
//Filters
override fun getFilterList() = FilterList(
Watched(),
GenreGroup(),
AdvancedGroup(),
ReverseFilter()
)
class Watched : Filter.CheckBox("Watched List"), UriFilter {
override fun addToUri(builder: Uri.Builder) {
builder.appendPath("watched")
}
}
class GenreOption(name: String, val genreId: Int): Filter.CheckBox(name, false)
class GenreGroup : Filter.Group<GenreOption>("Genres", listOf(
GenreOption("Dōjinshi", 2),