Merge branch 'develop' into tidy-up-core

This commit is contained in:
Javier Domingo Cansino 2013-09-12 11:41:01 +02:00
commit 7ae4adddeb
5 changed files with 40 additions and 13 deletions

View File

@ -48,7 +48,7 @@ v0.15.0 (UNRELEASED)
**Audio** **Audio**
- Added support for viusalization. :confval:`audio/visualizer` can now be set - Added support for audio visualization. :confval:`audio/visualizer` can now be set
to GStreamer visualizers. to GStreamer visualizers.
- Properly encode localised mixer names before logging. - Properly encode localised mixer names before logging.
@ -66,9 +66,9 @@ v0.15.0 (UNRELEASED)
to start providing their own custom libraries instead of being stuck with to start providing their own custom libraries instead of being stuck with
just our tag cache as the only option. just our tag cache as the only option.
- Converted local backend to use new `local:playlist:path` and - Converted local backend to use new ``local:playlist:path`` and
`local:track:path` uri scheme. Also moves support of `file://` to streaming ``local:track:path`` URI scheme. Also moves support of ``file://`` to
backend. streaming backend.
**Spotify backend** **Spotify backend**
@ -84,6 +84,10 @@ v0.15.0 (UNRELEASED)
- Replace newline, carriage return and forward slash in playlist names. (Fixes: - Replace newline, carriage return and forward slash in playlist names. (Fixes:
:issue:`474`, :issue:`480`) :issue:`474`, :issue:`480`)
- Accept ``listall`` and ``listallinfo`` commands without the URI parameter.
The methods are still not implemented, but now the commands are accepted as
valid.
v0.14.2 (2013-07-01) v0.14.2 (2013-07-01)
==================== ====================

View File

@ -75,3 +75,19 @@ GitHub:
`dz0ny/mopidy-soundcloud <https://github.com/dz0ny/mopidy-soundcloud>`_ `dz0ny/mopidy-soundcloud <https://github.com/dz0ny/mopidy-soundcloud>`_
Issues: Issues:
https://github.com/dz0ny/mopidy-soundcloud/issues https://github.com/dz0ny/mopidy-soundcloud/issues
Mopidy-Subsonic
---------------
Provides a backend for playing music from a `Subsonic Music Streamer
<http://www.subsonic.org/>`_ library.
Author:
Bradon Kanyid
PyPI:
`Mopidy-Subsonic <https://pypi.python.org/pypi/Mopidy-Subsonic>`_
GitHub:
`rattboi/mopidy-subsonic <https://github.com/rattboi/mopidy-subsonic>`_
Issues:
https://github.com/rattboi/mopidy-subsonic/issues

View File

@ -101,9 +101,6 @@ def deleteid(context, tlid):
Deletes the song ``SONGID`` from the playlist Deletes the song ``SONGID`` from the playlist
""" """
tlid = int(tlid) tlid = int(tlid)
tl_track = context.core.playback.current_tl_track.get()
if tl_track and tl_track.tlid == tlid:
context.core.playback.next()
tl_tracks = context.core.tracklist.remove(tlid=tlid).get() tl_tracks = context.core.tracklist.remove(tlid=tlid).get()
if not tl_tracks: if not tl_tracks:
raise MpdNoExistError('No such song', command='deleteid') raise MpdNoExistError('No such song', command='deleteid')

View File

@ -245,8 +245,9 @@ def _list_date(context, query):
return dates return dates
@handle_request(r'^listall "(?P<uri>[^"]+)"') @handle_request(r'^listall$')
def listall(context, uri): @handle_request(r'^listall "(?P<uri>[^"]+)"$')
def listall(context, uri=None):
""" """
*musicpd.org, music database section:* *musicpd.org, music database section:*
@ -257,8 +258,9 @@ def listall(context, uri):
raise MpdNotImplemented # TODO raise MpdNotImplemented # TODO
@handle_request(r'^listallinfo "(?P<uri>[^"]+)"') @handle_request(r'^listallinfo$')
def listallinfo(context, uri): @handle_request(r'^listallinfo "(?P<uri>[^"]+)"$')
def listallinfo(context, uri=None):
""" """
*musicpd.org, music database section:* *musicpd.org, music database section:*

View File

@ -82,11 +82,19 @@ class MusicDatabaseHandlerTest(protocol.BaseTestCase):
self.assertEqual(playlists[0].tracks[0].uri, 'dummy:a') self.assertEqual(playlists[0].tracks[0].uri, 'dummy:a')
self.assertInResponse('OK') self.assertInResponse('OK')
def test_listall(self): def test_listall_without_uri(self):
self.sendRequest('listall')
self.assertEqualResponse('ACK [0@0] {} Not implemented')
def test_listall_with_uri(self):
self.sendRequest('listall "file:///dev/urandom"') self.sendRequest('listall "file:///dev/urandom"')
self.assertEqualResponse('ACK [0@0] {} Not implemented') self.assertEqualResponse('ACK [0@0] {} Not implemented')
def test_listallinfo(self): def test_listallinfo_without_uri(self):
self.sendRequest('listallinfo')
self.assertEqualResponse('ACK [0@0] {} Not implemented')
def test_listallinfo_with_uri(self):
self.sendRequest('listallinfo "file:///dev/urandom"') self.sendRequest('listallinfo "file:///dev/urandom"')
self.assertEqualResponse('ACK [0@0] {} Not implemented') self.assertEqualResponse('ACK [0@0] {} Not implemented')