Mic92 / python-mpd2

Python library which provides a client interface for the Music Player Daemon.
GNU Lesser General Public License v3.0
352 stars 119 forks source link

MPDClient.seekcur() is an unknown command #36

Closed lhansford closed 10 years ago

lhansford commented 10 years ago

I'm trying to seek on the currently playing song and I'm getting the following error:

  CommandError: [5@0] {} unknown command "seekcur"

Using MPDClient.seek() works fine, but it requires specifying a song and I'd rather just to be able to default to the current song.

supermihi commented 10 years ago

Are you sure you are using the current version? The seekcur command is defined and works well for me; see https://github.com/Mic92/python-mpd2/blob/master/mpd.py#L103

Mic92 commented 10 years ago

seekcur was introduced in version 0.4.0.

You can use print(mpd.VERSION) to get your version.

lhansford commented 10 years ago

Ah, apologies, I had the correct version of Python-MPD2, but an older version of MPD from before seekcur was implemented. Sorry about that.