From ba999c7d3ff6b3d08f3d991641ade4d7aae84218 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 23 Feb 2010 19:11:45 +0100 Subject: [PATCH] Add output format for 3 stored playlists commands --- mopidy/mpd/handler.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mopidy/mpd/handler.py b/mopidy/mpd/handler.py index 776242eb..135b2b17 100644 --- a/mopidy/mpd/handler.py +++ b/mopidy/mpd/handler.py @@ -457,6 +457,12 @@ class MpdHandler(object): ``listplaylist {NAME}`` Lists the files in the playlist ``NAME.m3u``. + + Output format:: + + file: relative/path/to/file1.flac + file: relative/path/to/file2.ogg + file: relative/path/to/file3.mp3 """ raise MpdNotImplemented # TODO @@ -468,6 +474,11 @@ class MpdHandler(object): ``listplaylistinfo {NAME}`` Lists songs in the playlist ``NAME.m3u``. + + Output format: + + Standard track listing, with fields: file, Time, Title, Date, + Album, Artist, Track """ raise MpdNotImplemented # TODO @@ -484,6 +495,13 @@ class MpdHandler(object): time as attribute ``Last-Modified`` in ISO 8601 format. To avoid problems due to clock differences between clients and the server, clients should not compare this value with their local clock. + + Output format:: + + playlist: a + Last-Modified: 2010-02-06T02:10:25Z + playlist: b + Last-Modified: 2010-02-06T02:11:08Z """ # TODO Add Last-Modified attribute to output return [u'playlist: %s' % p.name