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):