Commits

Oben Sonne committed 43b5f31

MPD: use consistent names for dir- and list-actions

Also action names are kept short, which makes it easier to display them
on MIDP clients.

Comments (0)

Files changed (1)

adapter/mpd/remuco-mpd

 LA_PLAY = remuco.ListAction("Play")
 LA_ENQUEUE = remuco.ListAction("Enqueue")
 MLIB_LIST_ACTIONS = (LA_PLAY, LA_ENQUEUE)
-LA_ADD = remuco.ListAction("Add to playlist")
-LA_SET = remuco.ListAction("Set as playlist")
-MLIB_DIR_ACTIONS = (LA_ADD, LA_SET)
+DA_PLAY = remuco.ListAction("Play")
+DA_ENQUEUE = remuco.ListAction("Enqueue")
+MLIB_DIR_ACTIONS = (DA_ENQUEUE, DA_PLAY)
 
 SEARCH_MASK = [ "Artist", "Album", "Title" ]
 
             except mpd.MPDError, e:
                 log.warning("failed to play playlist (%s): %s" % (name, e))
 
-        elif action_id == LA_ADD.id:
+        elif action_id == DA_ENQUEUE.id:
 
             try:
                 path_s = ""
             except mpd.MPDERROR, e:
                 log.warning("failed to add in playlist (%s): %s" % (path_s, e))
 
-        elif action_id == LA_SET.id:
+        elif action_id == DA_PLAY.id:
 
             try:
                 path_s = ""