Add basic E/Ex-Hentai watched tag settings, possibly more to come
This commit is contained in:
@@ -60,6 +60,9 @@ class EhUConfigBuilder {
|
||||
configItems += Entry.UseMPV()
|
||||
configItems += Entry.ShowPopularRightNowPane()
|
||||
|
||||
configItems += Entry.TagFilteringThreshold(prefs.ehTagFilterValue().get())
|
||||
configItems += Entry.TagWatchingThreshold(prefs.ehTagWatchingValue().get())
|
||||
|
||||
// Actually build form body
|
||||
val formBody = FormBody.Builder()
|
||||
configItems.forEach {
|
||||
@@ -138,6 +141,16 @@ object Entry {
|
||||
override val key = "pp"
|
||||
override val value = "1"
|
||||
}
|
||||
|
||||
class TagFilteringThreshold(value: Int) : ConfigItem {
|
||||
override val key = "tf"
|
||||
override val value = "$value"
|
||||
}
|
||||
|
||||
class TagWatchingThreshold(value: Int) : ConfigItem {
|
||||
override val key = "wt"
|
||||
override val value = "$value"
|
||||
}
|
||||
}
|
||||
|
||||
interface ConfigItem {
|
||||
|
||||
Reference in New Issue
Block a user