diff --git a/docs/changelog.rst b/docs/changelog.rst index d3e3d21a..818619e4 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,15 @@ Changelog This changelog is used to track all major changes to Mopidy. +v1.0.7 (2015-06-26) +=================== + +Bug fix release. + +- Fix error in the MPD command ``list title ...``. The error was introduced in + v1.0.6. + + v1.0.6 (2015-06-25) =================== diff --git a/mopidy/__init__.py b/mopidy/__init__.py index 5f2384a8..7ab3b9e6 100644 --- a/mopidy/__init__.py +++ b/mopidy/__init__.py @@ -30,4 +30,4 @@ except ImportError: warnings.filterwarnings('ignore', 'could not open display') -__version__ = '1.0.6' +__version__ = '1.0.7' diff --git a/mopidy/mpd/protocol/music_db.py b/mopidy/mpd/protocol/music_db.py index de800f4b..1e80f2a0 100644 --- a/mopidy/mpd/protocol/music_db.py +++ b/mopidy/mpd/protocol/music_db.py @@ -32,7 +32,7 @@ _LIST_MAPPING = { 'performer': 'performer'} _LIST_NAME_MAPPING = { - 'title': 'Title', + 'track': 'Title', 'album': 'Album', 'albumartist': 'AlbumArtist', 'artist': 'Artist', @@ -260,9 +260,10 @@ def list_(context, *args): params = list(args) if not params: raise exceptions.MpdArgError('incorrect arguments') - field = params.pop(0).lower() - if field not in _LIST_MAPPING: + field = params.pop(0).lower() + field = _LIST_MAPPING.get(field) + if field is None: raise exceptions.MpdArgError('incorrect arguments') if len(params) == 1: diff --git a/tests/test_version.py b/tests/test_version.py index 82e30834..f8afd3db 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -61,5 +61,6 @@ class VersionTest(unittest.TestCase): self.assertVersionLess('1.0.2', '1.0.3') self.assertVersionLess('1.0.3', '1.0.4') self.assertVersionLess('1.0.4', '1.0.5') - self.assertVersionLess('1.0.5', __version__) - self.assertVersionLess(__version__, '1.0.7') + self.assertVersionLess('1.0.5', '1.0.6') + self.assertVersionLess('1.0.6', __version__) + self.assertVersionLess(__version__, '1.0.8')