Skip to content

Commit

Permalink
Release v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Jun 25, 2015
2 parents 167184d + bc2f56d commit 2f3d1b3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
9 changes: 9 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
===================

Expand Down
2 changes: 1 addition & 1 deletion mopidy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
warnings.filterwarnings('ignore', 'could not open display')


__version__ = '1.0.6'
__version__ = '1.0.7'
7 changes: 4 additions & 3 deletions mopidy/mpd/protocol/music_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'performer': 'performer'}

_LIST_NAME_MAPPING = {
'title': 'Title',
'track': 'Title',
'album': 'Album',
'albumartist': 'AlbumArtist',
'artist': 'Artist',
Expand Down Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ def test_versions_can_be_strictly_ordered(self):
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')

0 comments on commit 2f3d1b3

Please sign in to comment.