Hi Eric,
On 13.12.06, fred/eric wrote:
I just noticed that ogg files that were submitted through the audioscrobbler plugin were always reported as being 'too short' by last.fm. Looks like song.length is a float for oggs, and it seems that last.fm can't handle those. Since I ripped my entire collection of cd's to ogg, I decided to fiddle with this, and changing lines 100-102 in scrobbler.py to:
def submit(self, song): self.sendInfo(song.artist, song.title, song.album, int(song.length), song.lastplayed[-1])seems to work. All done by intuition, I haven't actually looked at the AS protocol, or at what the song.length of mp3s (which did and do work) returns, so if someone's gonna check this in I guess they should take a little care. I'll have a more detailed look when I get a little time myself, I just thought I'd mail this for the benefit of anyone else with oggs using the audioscrobbler plugin.
I'd even prefer song.length always being an integer and applied a corresponding patch to the currently active branch of the repository.
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.
Thanks for the feedback,
Jörg