Add basic E/Ex-Hentai watched tag settings, possibly more to come

This commit is contained in:
Jobobby04
2020-05-10 22:36:52 -04:00
parent 6e1da22353
commit 3bfda338ef
4 changed files with 115 additions and 0 deletions
@@ -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 {