Added config schema
This commit is contained in:
parent
87bf261345
commit
1892e472a0
@ -1 +1,3 @@
|
||||
[core]
|
||||
enabled = true
|
||||
max_tracklist_length = 10000
|
||||
|
||||
@ -18,7 +18,8 @@ class Extension(ext.Extension):
|
||||
|
||||
def get_config_schema(self):
|
||||
schema = super(Extension, self).get_config_schema()
|
||||
del schema['enabled'] # core cannot be disabled
|
||||
schema['max_tracklist_length'] = config.Integer(
|
||||
minimum=1, maximum=10000)
|
||||
return schema
|
||||
|
||||
def setup(self, registry):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user