From 2e6c0049a48c315d7b7abffee3703baed15bb34b Mon Sep 17 00:00:00 2001 From: matt LLVW Date: Wed, 4 Apr 2018 19:20:17 +0200 Subject: [PATCH] config: remove 10000 tracks limitation in playlists --- docs/changelog.rst | 2 ++ mopidy/config/__init__.py | 2 +- tests/config/test_defaults.py | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 425dad5c..74a51995 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -35,6 +35,8 @@ Feature release. - Set GLib program and application name, so that we show up as "Mopidy" in PulseAudio instead of "python ...". (PR: :issue:`1626`) +- Remove limitation of 10000 tracks in playlists. (PR: :issue:`1600`) + v2.1.0 (2017-01-02) =================== diff --git a/mopidy/config/__init__.py b/mopidy/config/__init__.py index 2743625e..a564ddf3 100644 --- a/mopidy/config/__init__.py +++ b/mopidy/config/__init__.py @@ -23,7 +23,7 @@ _core_schema['cache_dir'] = Path() _core_schema['config_dir'] = Path() _core_schema['data_dir'] = Path() # MPD supports at most 10k tracks, some clients segfault when this is exceeded. -_core_schema['max_tracklist_length'] = Integer(minimum=1, maximum=10000) +_core_schema['max_tracklist_length'] = Integer(minimum=1) _core_schema['restore_state'] = Boolean(optional=True) _logging_schema = ConfigSchema('logging') diff --git a/tests/config/test_defaults.py b/tests/config/test_defaults.py index 0cf78f6f..b104bd0c 100644 --- a/tests/config/test_defaults.py +++ b/tests/config/test_defaults.py @@ -23,4 +23,3 @@ def test_core_schema_has_max_tracklist_length(): max_tracklist_length_schema = config._core_schema['max_tracklist_length'] assert isinstance(max_tracklist_length_schema, config.Integer) assert max_tracklist_length_schema._minimum == 1 - assert max_tracklist_length_schema._maximum == 10000