Stephen Boyd wrote:
>
> Perhaps this is the only piece missing from your patch. Suppose I play,
> then pause the song, grab a cup of coffee and then come back and press
> play. My now playing on last.fm will be nothing because we only update
> now playing once. It seems that last.fm doesn't keep the now playing up
> for much longer than the actual length of the song sent.
Hmph. It also breaks when enabling scrobbling for the first time.
Have a song playing, start sonata, enable scrobbling, click next.
Traceback (most recent call last):
File "/home/swboyd/Programming/Sonata/sonata/main.py", line 2833, in
mpd_next
self.iterate_now()
File "/home/swboyd/Programming/Sonata/sonata/main.py", line 1058, in
iterate_now
self.iterate()
File "/home/swboyd/Programming/Sonata/sonata/main.py", line 1016, in
iterate
self.handle_change_status()
File "/home/swboyd/Programming/Sonata/sonata/main.py", line 1643, in
handle_change_status
self.scrobbler.handle_change_status('play', 'stop',
self.prevsonginfo, self.prevsonginfo)
File "/home/swboyd/Programming/Sonata/sonata/scrobbler.py", line 77,
in handle_change_status
self.scrob_playing_duration += time.time() - self.scrob_prev_time
AttributeError: 'Scrobbler' object has no attribute 'scrob_playing_duration'
_______________________________________________
Sonata-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/sonata-users