[Grouple] Add UserAgent config

This commit is contained in:
2023-02-25 18:36:05 +02:00
parent f62d024342
commit 1093584202

View File

@@ -283,6 +283,11 @@ internal abstract class GroupleParser(
} else res
}
override fun onCreateConfig(keys: MutableCollection<ConfigKey<*>>) {
super.onCreateConfig(keys)
keys.add(userAgentKey)
}
private fun getSortKey(sortOrder: SortOrder) =
when (sortOrder) {
SortOrder.ALPHABETICAL -> "name"