All done by intuition, I haven't actually looked at the AS protocol,
I have now, because the datetime submitted also does strange things. Turns out the plugin is submitting the float representation that time.time() returns, whereas the AS protocol expects a "YYYY-MM-DD hh:mm:ss" type of string so I modified scrobbler.py again:
at the top added:
from time import localtime, strftime
and line 101 and up now becomes:
def submit(self, song): tstr = strftime( ("%Y-%m-%d %H:%M:%S", localtime(song.lastplayed[-1])) self.sendInfo( song.artist, song.title, song.album, int(song.length), tstr)
I think this is correct, but I'll have to wait a little while to see for sure, since last.fm got a bit confused after the previous erroneous submissions, so it now thinks I'm trying to submit tracks earlier than those I've already submitted. ;)
I'd even prefer song.length always being an integer and applied a corresponding patch to the currently active branch of the repository.
Yes, that may be a good idea, I haven't looked at all of the code, but I can't imagine anything depending on having the time of oggs being a float ;).
Also: Just started using pytone yesterday, but it already ranks highly in my ever growing list of players. (right now I'm switching back and forth between it and quodlibet, which is also pretty cool)
Yes, quodlibet is also a nice piece of software, with a different focus though.
Very true, and both fit my needs at different times, so I think I will keep using both.