Last.Fm scrobbling support

Discuss third-party additions, plugins and translations for PS3 Media Server

Re: Last.Fm scrobbling support

Postby Kougeru » Thu Sep 10, 2009 11:17 pm

yeah it's not even signing me on thru pms
Kougeru
 
Posts: 5
Joined: Thu Sep 10, 2009 8:55 pm

Re: Last.Fm scrobbling support

Postby Silver » Fri Sep 11, 2009 11:27 am

Any idea if this plugin will be fixed/updated? I just got my account at Last.FM and have been enjoying it but..... :(
For Honor and Glory,
Silver
Silver
 
Posts: 10
Joined: Sat Feb 28, 2009 1:36 am
Location: Kelowna, BC Canada

Re: Last.Fm scrobbling support

Postby shagrath » Fri Sep 11, 2009 10:17 pm

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)...
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Re: Last.Fm scrobbling support

Postby dusoft » Fri Oct 16, 2009 11:04 pm

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 ;-)
dusoft
 
Posts: 17
Joined: Tue Jun 23, 2009 5:14 pm

Re: Last.Fm scrobbling support

Postby shagrath » Sun Oct 18, 2009 12:10 pm

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 :\
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Re: Last.Fm scrobbling support

Postby dusoft » Sun Oct 18, 2009 1:52 pm

So, could you please share the recompiled plugin so I can test and investigate further? ;)
dusoft
 
Posts: 17
Joined: Tue Jun 23, 2009 5:14 pm

Re: Last.Fm scrobbling support

Postby shagrath » Sun Oct 18, 2009 4:38 pm

sure, here's the zipped plugin:
Attachments
LastFMScrobbler.zip
(87.44 KiB) Downloaded 1453 times
shagrath
Project Lead
 
Posts: 2667
Joined: Wed Jan 14, 2009 1:39 pm

Re: Last.Fm scrobbling support

Postby dusoft » Tue Oct 20, 2009 8:40 am

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.
dusoft
 
Posts: 17
Joined: Tue Jun 23, 2009 5:14 pm

Re: Last.Fm scrobbling support

Postby Snorfle » Wed Oct 21, 2009 8:06 am

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. :)
Snorfle
 
Posts: 10
Joined: Sat Apr 18, 2009 5:45 am

Re: Last.Fm scrobbling support

Postby dusoft » Wed Oct 21, 2009 9:03 am

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 ;)
dusoft
 
Posts: 17
Joined: Tue Jun 23, 2009 5:14 pm

PreviousNext

Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 6 guests