Release v1.0.7

This commit is contained in:
Stein Magnus Jodal 2015-06-26 00:35:11 +02:00
commit 2f3d1b3f60
4 changed files with 17 additions and 6 deletions

View File

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

View File

@ -30,4 +30,4 @@ except ImportError:
warnings.filterwarnings('ignore', 'could not open display')
__version__ = '1.0.6'
__version__ = '1.0.7'

View File

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

View File

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