Merge pull request #1666 from mattLLVW/feature/remove-max-track-length

config: remove 10000 tracks limitation in playlists
This commit is contained in:
Stein Magnus Jodal 2018-04-06 21:58:26 +02:00 committed by GitHub
commit eed47a8ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -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)
===================

View File

@ -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')

View File

@ -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