Can't play previous track when controlling Decibel from terminal

Bug #656040 reported by m2xtreme
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Decibel Audio Player
Fix Released
Undecided
Anonym25712

Bug Description

I am working on a python script to control decibel-audio-player by voice command. In order to do so I must first be able to control decibel via the terminal. I managed to test all the commands given in the documentation shown below:

Command | Arguments | Description
-----------------------------------------------------------------------
next | | Jump to the next track
pause | | Pause or continue playing the current track
pl-add | file1 file2... | Append the given files to the playlist
pl-clr | | Clear the playlist
pl-set | file1 file2... | Set the playlist to the given files
play | | Start playing the current track
prev | | Jump to the previous track
shuffle | | Shuffle the playlist
stop | | Stop playback
volume | value (0 -- 100) | Set the volume

All the commands worked EXCEPT when I try to play the previous track via the terminal I get the following error:

name@name /usr/share/decibel-audio-player/src $ python remote.py prev
Traceback (most recent call last):
  File "remote.py", line 89, in <module>
    elif cmd == PREVIOUS: player.Previous()
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 649, in _message_cb
    (candidate_method, parent_method) = _method_lookup(self, method_name, interface_name)
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 244, in _method_lookup
    raise UnknownMethodException('%s is not a valid method of interface %s' % (method_name, dbus_interface))
UnknownMethodException: org.freedesktop.DBus.Error.UnknownMethod: Unknown method: Previous is not a valid method of interface org.freedesktop.MediaPlayer

I am new to python and programming in linux in general so any help would be greatly appreciated. Also, I plan to share my script and a tutorial when it is completed and fully working for those who are interested; but first I need help figuring out how to get "previous track" to work.

Thanks!

Revision history for this message
Anonym25712 (anonym25712) wrote :

Fixed in trunk. The MPRIS method is called Prev, not Previous.

Changed in decibel-audio-player:
assignee: nobody → François Ingelrest (athropos)
status: New → Fix Committed
Revision history for this message
Anonym25712 (anonym25712) wrote :

See v1.06

Changed in decibel-audio-player:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.