Page 6 of 10

Re: Last.Fm scrobbling support

PostPosted: Thu Sep 10, 2009 11:17 pm
by Kougeru
yeah it's not even signing me on thru pms

Re: Last.Fm scrobbling support

PostPosted: Fri Sep 11, 2009 11:27 am
by Silver
Any idea if this plugin will be fixed/updated? I just got my account at Last.FM and have been enjoying it but..... :(

Re: Last.Fm scrobbling support

PostPosted: Fri Sep 11, 2009 10:17 pm
by shagrath
skincarver wrote:Confirmed, this is not working on .356

[main] TRACE 20:02:29.463 Detected plugin net.pms.external.LastFMScrobbler
[main] TRACE 20:02:29.656 LastFM Scrobbler initialization OK
...
[Thread-11] TRACE 20:08:46.072 Error in scrobbler nowPlaying: null
[New I/O server worker #1-1] TRACE 20:08:56.597 Error in scrobbler donePlaying: Plugin bug: Not all request variables are set - Invalid Timestamp
[Thread-12] TRACE 20:09:16.989 Error in scrobbler nowPlaying: null
...
[Thread-15] TRACE 20:33:22.674 Error in scrobbler nowPlaying: null
[New I/O server worker #1-2] TRACE 20:33:36.349 Error in scrobbler donePlaying: Plugin bug: Not all request variables are set - Invalid Timestamp
[Thread-16] TRACE 20:33:56.380 Error in scrobbler nowPlaying: null

It submits the first song played, and starts failing on first song change.


actually I got this bug since the very beginning.. I didn't spent a lot of time to dig into it (yet)...

Re: Last.Fm scrobbling support

PostPosted: Fri Oct 16, 2009 11:04 pm
by dusoft
Error is on line 118 of LastFMScrobbler.java:
Code: Select all
alreadyPlayed.get(media)

It should be like
Code: Select all
alreadyPlayed.get(media) / 1000

because submit method requires this parameter in UNIX timestamp. But we are passing milliseconds. If somebody could fix the source and produce new jar file of plugin, I'll be very happy since I'm not familiar with Java at all ;-)

Re: Last.Fm scrobbling support

PostPosted: Sun Oct 18, 2009 12:10 pm
by shagrath
wow, thanks :)(I feel embarrassed now)

it's working fine now, but I got troubles to sync the playback with the registration, due to the nature of the streaming (it's really hard to detect the end of a song played on the ps3, on the server side). RIght now, one time playback means I've listened to the tracks 3 times on the last.fm site :\

Re: Last.Fm scrobbling support

PostPosted: Sun Oct 18, 2009 1:52 pm
by dusoft
So, could you please share the recompiled plugin so I can test and investigate further? ;)

Re: Last.Fm scrobbling support

PostPosted: Sun Oct 18, 2009 4:38 pm
by shagrath
sure, here's the zipped plugin:

Re: Last.Fm scrobbling support

PostPosted: Tue Oct 20, 2009 8:40 am
by dusoft
Hm.. for me it scrobbles fine. One entry for one listen. I've tried with about 30 tracks on different days (mp3 and FLAC transcoding both fine). But another question is why on last.fm page it displays: "Listening now using XMMS2-Scrobbler". I don't have XMMS2 running on my machine. But last time before listening with PMS I was listening with XMMS2 from another machine. Looks like last.fm remembers last program name that user was using. So, PMS should send own identification string.

Re: Last.Fm scrobbling support

PostPosted: Wed Oct 21, 2009 8:06 am
by Snorfle
Able to get it to scrobble using build 363! So happy this is working finally!!

FYI I'm actually not seeing any "Listening now using ..." string at all when I use the PMS scrobbler plugin, which is fine with me because that always felt a little stalkerish to me. :)

Re: Last.Fm scrobbling support

PostPosted: Wed Oct 21, 2009 9:03 am
by dusoft
Snorfle wrote:FYI I'm actually not seeing any "Listening now using ..." string at all when I use the PMS scrobbler plugin :)

That's probably because you have "Hide real-time listening information" enabled in your privacy settings on last.fm. Could you check that please to make sure this is the case ;)