From 1892e472a0e04097c509737b9f4c53a84b71c0c4 Mon Sep 17 00:00:00 2001 From: Ronald Zielaznicki Date: Fri, 17 Jul 2015 23:06:31 -0400 Subject: [PATCH] Added config schema --- mopidy/core/ext.conf | 2 ++ mopidy/core/ext.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mopidy/core/ext.conf b/mopidy/core/ext.conf index 94b2ad54..f186adf0 100644 --- a/mopidy/core/ext.conf +++ b/mopidy/core/ext.conf @@ -1 +1,3 @@ [core] +enabled = true +max_tracklist_length = 10000 diff --git a/mopidy/core/ext.py b/mopidy/core/ext.py index 7a610244..9b758119 100644 --- a/mopidy/core/ext.py +++ b/mopidy/core/ext.py @@ -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):