diff --git a/mopidy/mpd/protocol/current_playlist.py b/mopidy/mpd/protocol/current_playlist.py index f44abb95..da1a69d1 100644 --- a/mopidy/mpd/protocol/current_playlist.py +++ b/mopidy/mpd/protocol/current_playlist.py @@ -324,6 +324,37 @@ def plchangesposid(context, version): return result +# TODO: add at least reflection tests before adding NotImplemented version +# @protocol.commands.add( +# 'prio', priority=protocol.UINT, position=protocol.RANGE) +def prio(context, priority, position): + """ + *musicpd.org, current playlist section:* + + ``prio {PRIORITY} {START:END...}`` + + Set the priority of the specified songs. A higher priority means that + it will be played first when "random" mode is enabled. + + A priority is an integer between 0 and 255. The default priority of new + songs is 0. + """ + pass + + +# TODO: add at least reflection tests before adding NotImplemented version +# @protocol.commands.add('prioid') +def prioid(context, *args): + """ + *musicpd.org, current playlist section:* + + ``prioid {PRIORITY} {ID...}`` + + Same as prio, but address the songs with their id. + """ + pass + + @protocol.commands.add('shuffle', songrange=protocol.RANGE) def shuffle(context, songrange=None): """ @@ -383,37 +414,6 @@ def swapid(context, tlid1, tlid2): swap(context, position1, position2) -# TODO: add at least reflection tests before adding NotImplemented version -# @protocol.commands.add( -# 'prio', priority=protocol.UINT, position=protocol.RANGE) -def prio(context, priority, position): - """ - *musicpd.org, current playlist section:* - - ``prio {PRIORITY} {START:END...}`` - - Set the priority of the specified songs. A higher priority means that - it will be played first when "random" mode is enabled. - - A priority is an integer between 0 and 255. The default priority of new - songs is 0. - """ - pass - - -# TODO: add at least reflection tests before adding NotImplemented version -# @protocol.commands.add('prioid') -def prioid(context, *args): - """ - *musicpd.org, current playlist section:* - - ``prioid {PRIORITY} {ID...}`` - - Same as prio, but address the songs with their id. - """ - pass - - # TODO: add at least reflection tests before adding NotImplemented version # @protocol.commands.add('addtagid', tlid=protocol.UINT) def addtagid(context, tlid, tag, value):