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

Insufficient Documentation for Status #66

Closed blauertee closed 8 years ago

blauertee commented 8 years ago

It would be great if you could add an explanation of dict returned by MPDClient.status() because I really do not understand the difference between MPDClient.status()['time'] and MPDClient.status()['elapsed']. And is there no way to get the absolute length of a song in seconds?

Mic92 commented 8 years ago

try:

current, end = client.status()['time'].split(":") 

instead of what your using. It just returns, what mpd returns at the moment, which is a little quirky

blauertee commented 8 years ago

Thank you very much!