View Full Version : Last.FM plugin
Philip Meyer
2005-10-15, 08:51
I can't get this to work.
I'm using SlimServer v6.2b1 trunk (but currently reverted to 4605). SlimScrobbler plugin is working.
I've installed Last.FM plugin v0.8.1 from http://www.jamescraig.co.uk/SlimServer/. I have entered my username and password.
I've tried in the Default skin and Fishbone. I can see a LastFM Internet Radio browse mode. If I select it, all I see is a title "LastFM" in the browse frame - there are no selection options.
BTW, in the Fishbone skin, if I press the home link, I get a duplicate Slimdevices logo and broswe mode selection.
Phil
On 15-Oct-05, at 8:51 AM, Philip Meyer wrote:
>
> BTW, in the Fishbone skin, if I press the home link, I get a duplicate
> Slimdevices logo and broswe mode selection.
>
yup. and for once, its not my problem :)
the tt-wrapper branch will make this easier though, since the fishbone
skin will tell templates that it doesn't want a home link.
-k
Philip Meyer
2005-10-15, 10:56
>I can see a LastFM Internet Radio browse mode. If I select it, all I see is a title "LastFM" in the browse frame - there are no selection options.
>
From a SqueezeBox, I can navigate to Internet Radio->LastFM and then there's an option to play LastFM. I have configured a few in the LastFM plugin settings. However, there's no options to select what to play (such as my user radio, slimScrobbler group radio, etc) from the SqueezeBox.
I went back to the Web UI, and now I can see the "Play LastFM" option, but again no other play options.
Phil
From a SqueezeBox, I can navigate to Internet Radio->LastFM and then there's an option to play LastFM. I have configured a few in the LastFM plugin settings. However, there's no options to select what to play (such as my user radio, slimScrobbler group radio, etc) from the SqueezeBox.
I went back to the Web UI, and now I can see the "Play LastFM" option, but again no other play options.
Phil
I'm also trying to get this going and am similarly confused. My only success so far has been to startup the LastFM player in standalone mode, select a station (eg "similar to Paul Simon") which plays fine. Then close that down, startup softsqueeze, navigate through to the LastFM plugin and tell it to play...
Like Phil I don't see any options to play anything else, such as the favourite lastFM stations I gave when configuring the plugin through the web interface. But it does play the station last selected from the standalone player.
Any guidance available?
Slimserver 6.1, Windows XP SP2.
Thanks
Ceejay
jonolumb
2005-10-16, 08:58
I'm also experiencing the same problem.
I'm on the beta (6.2) build of slimserver, running on Fedora Core 4 (linux).
I can browse to the LastFM in the squeezebox but there are no options available for me and when I click play, nothing happens.
Help would be appreciated (by many) i feel
jono
I've been getting some very intermittent behaviour here... on one magic occasion the web interface page came up, with lots of useful looking options ... but since then, nothing, just a "play lastFM" link which seems to do nothing.
On softsqueeze I'm having even less success than previously.
I had been wondering whether this is a performance problem at LastFM- I remember reading there that subscribers have priority over non-subscribers, and that a non-subscriber will be dumped if necessary for a subscriber.
However I'm not having too much trouble at all with the standalone player, which seems to be offering a good service. I'd just love to get this going in slimserver so I can get this out to my SB2s!
Just one oddity about the service so far... I asked for artists like Beethoven, just for fun... was offered a list including Brahms, Liszt etc etc .. so I said yes, I'll have some of that... and was immediately listening to Alice In Chains !!! Something wrong with their tagging, methinks. This isn't a big issue as I get my classical music elsewhere, but I was amused.
BTW, if the LastFM plugin WERE working correctly for me, should I be able to use the remote control to select stations? It's just that I've seen no hint of that yet. If so, just from the list created in the web interface, or could I create new list entries from the remote?
Regards
Ceejay
Just wanted to chime in that I'm seeing the same problem many of the other folks are seeing and would LOVE to be able listen to LastFM through the SB2.
I'm on the 6.1 official release and some times the LastFM link gets me to the right place with the music flowing, etc. but most (95%) of the time, the link just says "LastFM".
The SB2 lets me navigate to LastFM, but hitting play, as indicated, just bring me back to the same page.
If it'll just work, that'll be greeeaatt! :-)
Craig, James (IT)
2005-10-17, 02:28
OK, let me explain how the plugin works.
Settings (login details, favourite stations etc) appear under 'Internet
Radio' in Server Settings in the web UI on 6.2, and under plugin
settings on earlier versions.
Stations etc can be controlled from 2 places;
On the player, you should find a LastFM entry under the Internet Radio
menu.
There's a 'LastFM' link under internet radio in the web UI.
The plugin keeps track of LastFM status for each player. When you go to
either the LastFM page in the web interface or the player, what you will
see depends on what the plugin consideres the status is:
If LastFM is not playing you'll just see the link to start playback or
the message 'press play to start'.
(The plugin will consider LastFM to not be playing if the player is
stoppe,off or if LastFM says you're not connected)
If LastFM is playing you'll see the expanded information on what station
& track is playing, and have the option to change stations.
When you start LastFM for the first time, it can take up to a minute for
LastFM to confirm the connection, so the state change is not immediate.
If starting the LastFM playback doesn't appear to be doing anything
please enable the d_plugins debug option and have a look in the server
log (http://yourserver:9000/log.txt) for any messages starting "LastFM"
- all the interaction with the LastFM servers will be logged here.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
Settings (login details, favourite stations etc) appear under 'Internet
Radio' in Server Settings in the web UI on 6.2, and under plugin
settings on earlier versions.
Not with me, I'm afraid: I have installed latest nightly (17-10) of 6.2, but still have only the LastFM login settings under 'plugins' (uploading the data works with this), but no radio stations options under Internet Radio. So the Squeezebox updates the data to my profile, but I cannot play the radio station. yet.
Thanks for the explanation anyway
Craig, James (IT)
2005-10-17, 03:19
You have both the SlimScrobber & LastFM plugins installed?
They're not the same thing - this has become a bit confusing since they
changed the name of the main website to LastFM...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
James
let me first say thanks for this, it looks terrific ... it just doesn't quite work for me yet! I have the slimscrobbler and lastFM plugins installed, I can set up the parameters in the internet radio settings, and SOMETIMES it works. Just 30 mins ago, for instance, the SB2/remote interface sprang into life and I was able to control Last FM in -I'm sure - the intended manner. But only for 10 minutes, then it stopped, and I've not been able to restart it.
Now I'm back at my server and softsqueeze, I've tried driving it from the web interface, but getting no response from the "play lastFM" link. Log output was as follows:
2005-10-17 11:26:02.1972 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-17 11:26:20.9584 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:20.9881 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:21.1381 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:21.2577 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:21.3366 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:21.3770 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:21.4481 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:21.5155 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:48.1286 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=40c23f8c8131b52d5279cc20187f03fc
2005-10-17 11:26:48.1616 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 11:26:48.2932 LastFM: ERROR = Invalid session
2005-10-17 11:26:48.0067 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:49.1584 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:49.2032 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:49.3016 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:49.3641 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:49.4264 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:49.4647 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:49.5290 Requiring Plugins::GrabPlaylist plugin.
2005-10-17 11:26:51.3943 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-17 11:27:02.2147 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-17 11:27:48.1637 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 11:27:51.4034 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-17 11:28:02.2478 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-17 11:28:48.1703 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 11:28:51.4049 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-17 11:29:02.2507 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-17 11:29:48.1774 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=40c23f8c8131b52d5279cc20187f03fc
2005-10-17 11:29:48.2145 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 11:29:48.3901 LastFM: ERROR = Invalid session
2005-10-17 11:29:51.4112 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
The MAC addresses seem to be correct for my two SB2 and one active softsqueeze.
So, what would make a session invalid and is there something I need to do to get a valid one again?
Many thanks
Ceejay
You have both the SlimScrobber & LastFM plugins installed?
They're not the same thing - this has become a bit confusing since they
changed the name of the main website to LastFM...
You hit the nail on the head here :-)
I seem to have been confused as you say, had only the slimscobbler plugin...well off to new squeezebox-adventures then...
Thanks!
Craig, James (IT)
2005-10-17, 03:48
Ceejay,
I've never seen this before, so this is good progress!
If you're using the latest version of the plugin, the session id is
allocated the first time you connect to LastFM with each player.
(Older versions stored only one session and may have problems with
multiple players)
As far as I know the session remains valid indefinitely - have you had
slimserver running for a long time?
I will add some code to the plugin to get a new session ID/invalidate
the current one when it gets this response.
(The only way at present to do this is to restart SlimServer)
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
James
I downloaded the plugin from your site only a few days ago, so I guess its the most recent.
I think I last restarted slimserver a couple of days ago - normally I just leave it running.
Not sure if this is a red herring... but I note that the LastFM password box gets replaced with a password of 32 characters, I'm guessing this is the session id?? If so I'm not understanding where you are storing the multiple session ids that would be required to support multiple players???
Let me know if you'd like me to do any other logging that would help...
Thanks
Ceejay
Further to my last message, I think I've really b******ed it now!
I thought I'd try stopping and restarting slimserver to see if that forced a new session connection. Now the "lastFM" page in the web interface doesn't even have a play option.
In softsqueeze, pressing right on "LastFM" briefly flashes something then goes back to the previous message ("Last FM >").
Log file says
2005-10-17 12:07:32.2541 LastFM: Connecting to: http://wsdev.audioscrobbler.com/radio/handshake.php?version=1.0.1&platform=slim&username=Ceejayfm&passwordmd5=................................
2005-10-17 12:07:32.6877 LastFM: Loading error
2005-10-17 12:07:44.1016 LastFM: Connecting to: http://wsdev.audioscrobbler.com/radio/handshake.php?version=1.0.1&platform=slim&username=Ceejayfm&passwordmd5=................................
2005-10-17 12:07:44.4102 LastFM: Loading error
2005-10-17 12:07:59.5187 LastFM: Connecting to: http://wsdev.audioscrobbler.com/radio/handshake.php?version=1.0.1&platform=slim&username=Ceejayfm&passwordmd5=................................
2005-10-17 12:07:59.8196 LastFM: Loading error
(Password edited here just in case...)
Doesn't look I'll be able to help with any debugging for a while! :)
Thanks
Ceejay
Craig, James (IT)
2005-10-17, 04:29
Ceejay,
That probably just means that LastFM is down at the moment.
I recall the web page doesn't work properly unless you've started the
plugin going from a player - I had some problems with the web page
duplicating the player's requests.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
Sorry, good theory but no... lastFM is working fine from their standalone player.
I just tried re-entering my password in the web page, then going to softsqueeze... still no joy at all. Same "loading error" message as before.
Ceejay
Craig, James (IT)
2005-10-17, 05:35
The 'loading error' message means it didn't get the stream URL from
LastFM.
The absence of any other messages would indicate that the http
connection to LastFM either failed completely or that they sent back a
response containing 'FAILED'. You could try opening that URL in a
browser and seeing what comes back.
Strange though, it is working for me this morning.
Although I had to 'play' the stream a 2nd time to get the music started.
I'll post a new version tonight, I have fixed or tweaked a couple of
these problems...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
James
thanks for the continuing assistance. I can now confess that my most recent problem was entirely user error - while messing around with everything else, I screwed up my password! So it was giving a "FAILED" response.
As I write this, it has now burst into life and is working perfectly through softsqueeze.
This doesn't explain the problem I was having at 11.39 today, but if you have a patch coming I'll try that tonight.
Some enhancement requests for your consideration...
- if you get a FAILED response, prompt user to check password!!
- if you get no response at all, prompt user to check for life on lastFM website
- could you show users how to list a "similar artist" station in the favourites on the configuration page
- add a shortcut link from the "playing" page to the configuration page (otherwise its three clicks and a scroll if you decide to add another station)
Thanks and best regards
Ceejay
Me again... have been playing most of the afternoon, which is a lot better than I've managed before. Two issues at present:
(1) seems to work for a while then randomly just stop. Pressing play on softsqueeze gets it started again. Just now,for example, I had 20 minutes working
(2) every two minutes, regular as clockwork, the plugin seems to be sending a "skip" command... which lastFM is dutifully obeying. It wasn't me!
Log file here:
2005-10-17 16:30:06.3767 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=4b22b8f45fd2eee4990ff636f1610ef7
2005-10-17 16:30:06.4329 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 16:30:06.6522 LastFM: streaming = true
2005-10-17 16:30:06.6539 LastFM: discovery = 0
2005-10-17 16:30:06.6548 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-17 16:30:06.6557 LastFM: artist = Bob James
2005-10-17 16:30:06.6565 LastFM: artist_url = http://www.last.fm/music/Bob+James
2005-10-17 16:30:06.6574 LastFM: track = Nautilus
2005-10-17 16:30:06.6623 LastFM: track_url = http://www.last.fm/music/Bob+James/_/Nautilus
2005-10-17 16:30:06.6638 LastFM: album = Shaolin Soul Episode 1
2005-10-17 16:30:06.6647 LastFM: album_url = http://www.last.fm/music/Bob%20James/Shaolin%20Soul%20Episode%201
2005-10-17 16:30:06.6656 LastFM: albumcover_small = http://83.142.226.211/coverart/50x50/1422162.jpg
2005-10-17 16:30:06.6666 LastFM: albumcover_medium = http://83.142.226.211/coverart/130x130/1422162.jpg
2005-10-17 16:30:06.6674 LastFM: albumcover_large = http://83.142.226.211/coverart/130x130/1422162.jpg
2005-10-17 16:30:06.6685 LastFM: trackduration = 306
2005-10-17 16:30:06.6708 LastFM: trackprogress = 111
2005-10-17 16:30:06.6719 LastFM: radiomode = 1
2005-10-17 16:30:06.6728 LastFM: recordtoprofile = 1
2005-10-17 16:30:14.9164 LastFM: Sending http://ws.audioscrobbler.com/radio/control.php?session=4b22b8f45fd2eee4990ff636f1610e f7&command=skip
2005-10-17 16:30:15.1307 LastFM: response=OK
2005-10-17 16:31:06.4378 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=4b22b8f45fd2eee4990ff636f1610ef7
2005-10-17 16:31:06.4995 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 16:31:06.8267 LastFM: streaming = true
2005-10-17 16:31:06.8285 LastFM: discovery = 0
2005-10-17 16:31:06.8294 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-17 16:31:06.8304 LastFM: artist = Al Jarreau
2005-10-17 16:31:06.8313 LastFM: artist_url = http://www.last.fm/music/Al+Jarreau
2005-10-17 16:31:06.8323 LastFM: track = Lost And Found (Guest Vocal By
2005-10-17 16:31:06.8333 LastFM: track_url = http://www.last.fm/music/Al+Jarreau/_/Lost+And+Found+%28Guest+Vocal+By
2005-10-17 16:31:06.8341 LastFM: album = All I Got
2005-10-17 16:31:06.8350 LastFM: album_url = http://www.last.fm/music/Al%20Jarreau/All%20I%20Got
2005-10-17 16:31:06.8360 LastFM: albumcover_small = http://images-eu.amazon.com/images/P/B000069KJ6.02.THUMBZZZ.jpg
2005-10-17 16:31:06.8369 LastFM: albumcover_medium = http://images-eu.amazon.com/images/P/B000069KJ6.02.MZZZZZZZ.jpg
2005-10-17 16:31:06.8379 LastFM: albumcover_large = http://images-eu.amazon.com/images/P/B000069KJ6.02.MZZZZZZZ.jpg
2005-10-17 16:31:06.8387 LastFM: trackduration = 289
2005-10-17 16:31:06.8396 LastFM: trackprogress = 52
2005-10-17 16:31:06.8405 LastFM: radiomode = 1
2005-10-17 16:31:06.8414 LastFM: recordtoprofile = 1
2005-10-17 16:32:06.5032 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=4b22b8f45fd2eee4990ff636f1610ef7
2005-10-17 16:32:06.5327 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 16:32:06.8271 LastFM: streaming = true
2005-10-17 16:32:06.8288 LastFM: discovery = 0
2005-10-17 16:32:06.8297 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-17 16:32:06.8306 LastFM: artist = Al Jarreau
2005-10-17 16:32:06.8315 LastFM: artist_url = http://www.last.fm/music/Al+Jarreau
2005-10-17 16:32:06.8325 LastFM: track = Lost And Found (Guest Vocal By
2005-10-17 16:32:06.8336 LastFM: track_url = http://www.last.fm/music/Al+Jarreau/_/Lost+And+Found+%28Guest+Vocal+By
2005-10-17 16:32:06.8344 LastFM: album = All I Got
2005-10-17 16:32:06.8354 LastFM: album_url = http://www.last.fm/music/Al%20Jarreau/All%20I%20Got
2005-10-17 16:32:06.8363 LastFM: albumcover_small = http://images-eu.amazon.com/images/P/B000069KJ6.02.THUMBZZZ.jpg
2005-10-17 16:32:06.8372 LastFM: albumcover_medium = http://images-eu.amazon.com/images/P/B000069KJ6.02.MZZZZZZZ.jpg
2005-10-17 16:32:06.8381 LastFM: albumcover_large = http://images-eu.amazon.com/images/P/B000069KJ6.02.MZZZZZZZ.jpg
2005-10-17 16:32:06.8391 LastFM: trackduration = 289
2005-10-17 16:32:06.8400 LastFM: trackprogress = 112
2005-10-17 16:32:06.8409 LastFM: radiomode = 1
2005-10-17 16:32:06.8419 LastFM: recordtoprofile = 1
2005-10-17 16:32:15.2024 LastFM: Sending http://ws.audioscrobbler.com/radio/control.php?session=4b22b8f45fd2eee4990ff636f1610e f7&command=skip
2005-10-17 16:32:15.6430 LastFM: response=OK
2005-10-17 16:33:06.5404 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=4b22b8f45fd2eee4990ff636f1610ef7
2005-10-17 16:33:06.6139 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 16:33:06.8924 LastFM: streaming = true
2005-10-17 16:33:06.8941 LastFM: discovery = 0
2005-10-17 16:33:06.8950 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-17 16:33:06.8960 LastFM: artist = David Benoit
2005-10-17 16:33:06.8969 LastFM: artist_url = http://www.last.fm/music/David+Benoit
2005-10-17 16:33:06.8977 LastFM: track = Here There and Everywhere
2005-10-17 16:33:06.8989 LastFM: track_url = http://www.last.fm/music/David+Benoit/_/Here+There+and+Everywhere
2005-10-17 16:33:06.8999 LastFM: album = (I Got No Kick Against) Modern Jazz - Celebration of the Songs of the Beatles
2005-10-17 16:33:06.9009 LastFM: album_url = http://www.last.fm/music/David%20Benoit/%28I%20Got%20No%20Kick%20Against%29%20Modern%20Jaz z%20-%20Celebration%20of%20the%20Songs%20of%20the%20Bea tles
2005-10-17 16:33:06.9020 LastFM: albumcover_small = http://83.142.226.211/coverart/50x50/1414143.jpg
2005-10-17 16:33:06.9030 LastFM: albumcover_medium = http://83.142.226.211/coverart/130x130/1414143.jpg
2005-10-17 16:33:06.9039 LastFM: albumcover_large = http://83.142.226.211/coverart/300x300/1414143.jpg
2005-10-17 16:33:06.9047 LastFM: trackduration = 240
2005-10-17 16:33:06.9056 LastFM: trackprogress = 51
2005-10-17 16:33:06.9064 LastFM: radiomode = 1
2005-10-17 16:33:06.9074 LastFM: recordtoprofile = 1
2005-10-17 16:34:06.6176 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=4b22b8f45fd2eee4990ff636f1610ef7
2005-10-17 16:34:06.6476 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 16:34:07.0680 LastFM: streaming = true
2005-10-17 16:34:07.0695 LastFM: discovery = 0
2005-10-17 16:34:07.0706 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-17 16:34:07.0742 LastFM: artist = David Benoit
2005-10-17 16:34:07.0752 LastFM: artist_url = http://www.last.fm/music/David+Benoit
2005-10-17 16:34:07.0772 LastFM: track = Here There and Everywhere
2005-10-17 16:34:07.0783 LastFM: track_url = http://www.last.fm/music/David+Benoit/_/Here+There+and+Everywhere
2005-10-17 16:34:07.0792 LastFM: album = (I Got No Kick Against) Modern Jazz - Celebration of the Songs of the Beatles
2005-10-17 16:34:07.0802 LastFM: album_url = http://www.last.fm/music/David%20Benoit/%28I%20Got%20No%20Kick%20Against%29%20Modern%20Jaz z%20-%20Celebration%20of%20the%20Songs%20of%20the%20Bea tles
2005-10-17 16:34:07.0813 LastFM: albumcover_small = http://83.142.226.211/coverart/50x50/1414143.jpg
2005-10-17 16:34:07.0824 LastFM: albumcover_medium = http://83.142.226.211/coverart/130x130/1414143.jpg
2005-10-17 16:34:07.0833 LastFM: albumcover_large = http://83.142.226.211/coverart/300x300/1414143.jpg
2005-10-17 16:34:07.0842 LastFM: trackduration = 240
2005-10-17 16:34:07.0852 LastFM: trackprogress = 111
2005-10-17 16:34:07.0862 LastFM: radiomode = 1
2005-10-17 16:34:07.0872 LastFM: recordtoprofile = 1
2005-10-17 16:34:15.4683 LastFM: Sending http://ws.audioscrobbler.com/radio/control.php?session=4b22b8f45fd2eee4990ff636f1610e f7&command=skip
2005-10-17 16:34:16.0745 LastFM: response=OK
2005-10-17 16:35:06.6506 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 16:36:06.6536 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-17 16:36:15.7459 LastFM: Sending http://ws.audioscrobbler.com/radio/control.php?session=4b22b8f45fd2eee4990ff636f1610e f7&command=skip
2005-10-17 16:36:16.9991 LastFM: response=OK
This was playing ok up until about 16.34 or so (although changing track every 2 mins), then stopped.
Many thanks, I'm really looking forward to these little kinks being ironed out... may even subscribe to lastFM if it will help get me a higher priority!
Ceejay
Ceejay
Craig, James (IT)
2005-10-17, 08:51
That's very strange.
The only thing I can think of that would cause that is if you skipped a
track with the web page, and the auto-refresh of the page (which is set
to 2 minutes) kept skipping... it did do this when I first added the web
page, but I had thought I had fixed that one.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
James
spot on. I had left a browser tab (Firefox) on the Play page... I had done a skip, once upon a time, so the refresh must have kept reissuing it. Navigating away from that page stopped the skips.
So, not fixed that one after all! (unless I have an old version, not sure how - the ZIP file I downloaded is called LastFM08 and contains a plugin file dated 22/08)
Ceejay.
New version 0.8.2 of the plugin posted at my website
http://www.jamescraig.co.uk/SlimServer/
Have fixed all of the known problems and incorporated suggestions.
Thanks to Ceejay who is doing a better job of testing the plugin than I ever did!
James
Philip Meyer
2005-10-17, 12:58
Hi Craig,
Thanks for trying to sort this out. This is my experience to date, just to clarify the situation.
I have managed to log into the LastFM website, and play various radio stations.
I have Slimscrobbler plugin enabled and working.
I have LastFM version 0.8.1 from your website installed.
I have configured my username and password in Server Settings -> Internet Radio -> LastFM. This is the same username/password that I used to log into my profile on the LastFM web site. I have also got the following stations configured:
group/SlimScrobbler
globaltags/radiohead
LastFM Album Size = Small
I can see a LastFM browse mode in the Web UI. If I select this, I see exactly the following:
Home / LastFM
LastFM
In the Fishbone skin, "Home" is a hyperlink that creates a new header frame in the UI, causing a duplicate Slim Devices logo, Home/Statistics/Help links and browse mode drop-down list.. Not too bothered about that problem at the moment.
Nothing else in clickable.
When I went to the Player UI -> Internet Radio -> LastFM, there was a single option (something like "Play LastFM internet radio..."). There weren't any options to select what configured radio station to play. I tried to press play - nothing.
Then when I went back to the Web UI, there was a Play option on the LastFM browse page (again no options to select what to play). I pressed this play option. Nothing changed on the Web UI.
I went back to the SqueezeBox, and I could see it was playing a Tangerine Dream track. That's quite likely to be something relating to my LastFM profile ;)
The LastFM options on the SqueezeBox now seem to be functioning. I can see options to indicate "LOVE", "BAN", "SKIP", and there was an option to select a different station.
I pressed right, and selected Radiohead. This returned to the LastFM menu, which still displayed the Tangerine Dream track, even though something else was playing. (Actually it was Glittering Blackness by Explosions in the Sky, which was a good track that I've never heard before - I so want to get this plugin working properly and reliably to discover new music!).
The Web UI now seems to be working too.
There does appear to be problems getting the LastFM plugin to work, but it's well worth it as once you're there, it's great!
There are all kinds of minor problems with the Player UI and Web UI, such as not updating things properly or links not jumping to the right place, but its a pretty good start.
Some things I noticed:
1. In the Player UI, cycling through the options using Up/Down buttons seems to be too responsive - I often skip over options too quickly. Needs a slight pause.
2. Clicking right-arrow on a radio station seems inconsistent with the rest of the interface - pressing play (and perhaps allow the use of add too) would be more consistent.
3. On the Web UI, clicking the station has a link to http://localhost:9000/plugins/LastFM, which opens a new blank internet window. Other links for Track, Artist, Album, seem to correctly open a new window in LastFM web site detailing the info.
4. Clicking a change station link refreshes the page before it has started playing; does it ever auto-refresh later to display the correct info?
5. The current playlist now playing always displays "LastFM" - is it possible to display the currently playing meta data.
Phil
James
thanks for posting the latest version... or have you? I see that the web page has changed, but the Zip file the link points to seems to have exactly the same contents (date, size) as the last version.
So either I've go a cache problem or you've forgotten to update the target?
Ceejay
Philip Meyer
2005-10-17, 13:02
I noticed some other things, but see that a new version of the plugin is being uploaded now, so I'll try that first.
Thanks!
Phil
I just downloaded the zip file and it is the new one - probably is the same size after being zipped. The new version says 0.8.2 about 10 lines into the Plugin.pm file...
Now to address Philip's points;
While playing, the plugin 'pings' LastFM every 60 seconds to find out what's supposed to be playing. The now playing information is updated immediately, you should see this on the player. The playlist section of the web UI seems like it needs a refresh to update the information. The LastFM page refreshes itself every 2 minutes automaticall. The last couple of tracks played are also listed in case you miss anything. You can refresh this page manually by clicking on the LastFm link on the top line.
I agree that the menus are not very consistent, will try and address this in the next version....
Most of the other stuff, particularly relating to the web page, should be fixed now!
James
sorry to be a pain, but I must have some very weird caching problem here! I follow the link to your website a few posts up... see all the new stuff, version number etc ... see the download link on the right ... it goes to a blueyonder address, file name LastFM08.zip.
I download the file, open it up with zip, and see two files dated 21/8/05 and 22/8/05. The haven't changed since yesterday.
I can't read the files very easily as I'm using notepad on Windows and it doesn't like the line breaks, but I can find...
-----------
$VERSION = substr(q$Revision: 0.7 $,10);
# CHANGES
# 0.7.1
# fixed for subscribers
------------
Have I got something seriously old here? (This would explain why I had the repeating skip bug you thought you'd fixed!)
Could you perhaps post the files here in this forum as well, or do you have any other bright ideas as to why I keep getting old stuff?
(Could be my ISP - ntlworld - doing some nasty caching of course)
Thanks
Ceejay
(frustrated 'cos I'd like to try out your new stuff!!)
OK, sorted it... it was (still is) a weird caching problem.
I tried everything I could think of to download the file from my PC- clearing cache,switching browsers... still kept getting the August file. In the end I switched to my work laptop, with VPN route to work, access internet via work and hey presto! Different file!
I'd get cross with NTL (my ISP) but I long since ran out of energy for that one...
Now I can get down to some serious playing, I hope!
All the best
Ceejay
Philip Meyer
2005-10-17, 15:47
I downloaded version 0.8.2 okay. The zipfile is named LastFM08.zip, but I can see the new version id in the plugin.pl file.
I haven't had any chance to play much with it yet, but will try tomorrow.
Skip/Ban options via the web UI don't seem to work; the current track seems to continue to play. Don't know how to check if the "Love" option works.
For the record, I left LastFM plugin playing whilst I went out tonight, and it was still going fine when I came back in 2 hours later (0.8.1).
I notice that the currently playing track is displayed in the Now Playing track section on the Web UI. It's the info in the LastFM browse window that isn't updated, or the entry in the current playlist (which just says "LastFM") - but perhaps that's how it's meant to work.
One slightly irritating thing is the default station being user/Hergest/neighbours, and that every user or group I enter automatically has /neighbours added to it. I seem to be getting some rubbish tracks played because of this. Any chance that the /neighbours item could be dropped, so we can add stations with or without the neighbours option?
Phil
Finally had a chance to try out the new LastFM version now that I'm back from work and it works! Schweet!
I'd like to thank James Craig for making it all work, and to Ceejay for providing feedback!
Cheers!
Phil,
the reason station names you enter have 'neighbours' added on the end is because that's the only option available to non-subscribers. If you are a subscriber you get to choose neighbour or personal versions of the stations.
I think that the default first station is whatever you listened to last?
When you issue the skip/ban commands it can take some time for the music to change, as SS is buffering a lot of music. The way to check if they're working is to enable the 'd_plugins' logging and check the log after sending a command. You'll see the response from LastFM, either OK or FAILED.
Are you sure the web page is not refreshing automatically every 2 minutes? What OS & browser are you using? I have only tested in Firefox.
James
James,
well after all of my grief yesterday, I guess I owe you some thoughtful feedback, so here it is: this is working great, I love it.
The main annoyance is one I suspect you can do nothing at all about, which is the inherent delay in some of the commands (we just have to remind ourselves of the magic that's being worked here... a personalised radio station coming over the internet, as opposed to the comparatively easy task of picking a file off a local disc!)
Phil,
the reason station names you enter have 'neighbours' added on the end is because that's the only option available to non-subscribers. If you are a subscriber you get to choose neighbour or personal versions of the stations.
... agreed, but the plugin also adds "neighbours" to, for example, "artists/dido/similarartists" on the webpage listing, which is confusing and I think unnecessary (doesn't show on the SB2 screen options list)
Other notes:
- thanks for the minor usability improvements as I requested!
- as commented earlier by Phil, the Up and Down keys on the remote are hypersensitive ... actually I think they are set to repeat on hold, which may be unnecessary (NB this refers to the menu which includes press play to love/skip etc... the station selector menu is fine)
- a little whle ago I had a drop out, from which the plugin had a good go at recovering (hooray!) - unfortunately, although it appears to be playing in the log, there's no sound after the recovery and the time counter on soft squeeze is not advancing (actually alternating between 15:52 and 15:53 !!). Log extract:
2005-10-18 08:01:11.9772 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=d4a2c17ed2812403b37988e44073b3e0
2005-10-18 08:01:12.0388 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-18 08:01:12.1554 LastFM: streaming = true
2005-10-18 08:01:12.1562 LastFM: discovery = 0
2005-10-18 08:01:12.1567 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-18 08:01:12.1573 LastFM: artist = Lee Ritenour
2005-10-18 08:01:12.1579 LastFM: artist_url = http://www.last.fm/music/Lee+Ritenour
2005-10-18 08:01:12.1584 LastFM: track = Waiting In Vain (Edited Version)
2005-10-18 08:01:12.1591 LastFM: track_url = http://www.last.fm/music/Lee+Ritenour/_/Waiting+In+Vain+%28Edited+Version%29
2005-10-18 08:01:12.1601 LastFM: album = Waiting In Vain
2005-10-18 08:01:12.1607 LastFM: album_url = http://www.last.fm/music/Lee%20Ritenour/Waiting%20In%20Vain
2005-10-18 08:01:12.1614 LastFM: albumcover_small = http://83.142.226.211/coverart/50x50/22088.jpg
2005-10-18 08:01:12.1620 LastFM: albumcover_medium = http://83.142.226.211/coverart/130x130/22088.jpg
2005-10-18 08:01:12.1626 LastFM: albumcover_large = http://83.142.226.211/coverart/130x130/22088.jpg
2005-10-18 08:01:12.1632 LastFM: trackduration = 232
2005-10-18 08:01:12.1638 LastFM: trackprogress = 43
2005-10-18 08:01:12.1645 LastFM: radiomode = 1
2005-10-18 08:01:12.1651 LastFM: recordtoprofile = 1
2005-10-18 08:01:56.0519 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-18 08:02:12.0483 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=d4a2c17ed2812403b37988e44073b3e0
2005-10-18 08:02:33.0621 LastFM: Connect to lastfm failed!
2005-10-18 08:02:33.0621 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-18 08:02:56.0559 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-18 08:03:33.0699 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=d4a2c17ed2812403b37988e44073b3e0
2005-10-18 08:03:33.0955 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-18 08:03:33.2064 LastFM: streaming = true
2005-10-18 08:03:33.2073 LastFM: discovery = 0
2005-10-18 08:03:33.2079 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-18 08:03:33.2086 LastFM: artist = Lee Ritenour
2005-10-18 08:03:33.2092 LastFM: artist_url = http://www.last.fm/music/Lee+Ritenour
2005-10-18 08:03:33.2105 LastFM: track = Waiting In Vain (Edited Version)
2005-10-18 08:03:33.2111 LastFM: track_url = http://www.last.fm/music/Lee+Ritenour/_/Waiting+In+Vain+%28Edited+Version%29
2005-10-18 08:03:33.2117 LastFM: album = Waiting In Vain
2005-10-18 08:03:33.2124 LastFM: album_url = http://www.last.fm/music/Lee%20Ritenour/Waiting%20In%20Vain
2005-10-18 08:03:33.2130 LastFM: albumcover_small = http://83.142.226.211/coverart/50x50/22088.jpg
2005-10-18 08:03:33.2136 LastFM: albumcover_medium = http://83.142.226.211/coverart/130x130/22088.jpg
2005-10-18 08:03:33.2142 LastFM: albumcover_large = http://83.142.226.211/coverart/130x130/22088.jpg
2005-10-18 08:03:33.2176 LastFM: trackduration = 232
2005-10-18 08:03:33.2182 LastFM: trackprogress = 184
2005-10-18 08:03:33.2207 LastFM: radiomode = 1
2005-10-18 08:03:33.2213 LastFM: recordtoprofile = 1
In this case, although all the various submenus (skip, select new channel etc) were presented, none of them did anything. I had to go back to plugins/internet radio/lastfm, then I got "press play to start lastfm, which did restart.
- one other thing.. just after loading this up last night, I had an incident where slimserver had a runaway of some kind: 100% CPU, no responsiveness, eating virtual memory. I wasn't logging at the time so have no evidence, and I can't definitely say it was this plugin, but on the other hand this is the first time this has happened and I was fiddling with the plugin controls at the time. I've not been able to reproduce this, so this could easily be another red herring, but I just thought I'd mention it in case someone else gets something similar.
Thats all for now - I need to go and do some work!! But thanks again for this, its great.
Regards
Ceejay
Craig, James (IT)
2005-10-18, 03:18
> The main annoyance is one I suspect you can do nothing at all about,
> which is the inherent delay in some of the commands
I agree, LastFM is actually a lot more responsive on a SB1 due to the
smaller buffer!
> ... agreed, but the plugin also adds "neighbours" to, for example,
> "artists/dido/similarartists" on the webpage listing
OK that's a bug. Will fix. It's just user stations that need neighbours
added I think?
> - as commented earlier by Phil, the Up and Down keys on the remote are
> hypersensitive ... actually I think they are set to repeat on hold,
> which may be unnecessary (NB this refers to the menu which includes
> press play to love/skip etc... the station selector menu is fine)
Ah! I've killed the repeat which is nasty but should do what you want.
Need to do this properly but that's a bit of work...
> In this case, although all the various submenus (skip, select new
> channel etc) were presented, none of them did anything. I had to go
> back to plugins/internet radio/lastfm, then I got "press play to start
> lastfm, which did restart.
The submenus were available in the web page but not in the player menu?
They should have disappeared from the web page next time it refreshed.
> I had an incident where slimserver had a runaway of some kind: 100%
CPU, no
> responsiveness, eating virtual memory.
I get this quite frequently but from Softsqueeze, not SlimServer.
So, look out for a new version tonight...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
mattybain
2005-10-18, 05:43
Cripes I am also on NTL and can't get the latest version, is there anyway around this (apart from change ISP :( )? I am seeing some flakiness and inconsistencies and I would like to see if they are resolved in the new version.
Craig, James (IT)
2005-10-18, 05:46
I'll change the filename for tonight's version...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
I agree, LastFM is actually a lot more responsive on a SB1 due to the smaller buffer!
James, can the buffer not be flushed to speed things up? Seems that is how I can quickly switch songs normally anyway...
Thanks!
Craig, James (IT)
2005-10-18, 08:59
> James, can the buffer not be flushed to speed things up?
Maybe but I think that's beyond my powers!
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
Hi James -
Not sure if this is a repeatable bug, but on the latest version, if there is no Slim device available, clicking on the LastFM link from the main SlimServer page crashes SlimServer as the plugin attempts to find a device to poll...
Checking my slimserver.log I see this:
"Can't call method "macaddress" on an undefined value at /Users/payote/Library/SlimDevices/Plugins/LastFM/Plugin.pm line 458"
When a Slim player is available, everything is AOK.
Great work on this plug-in - combined with SlimScrobbler it has helped me discover a host of great new music.
> Maybe but I think that's beyond my powers!
Thank you, nevertheless :-).
mattybain
2005-10-19, 01:58
My experience with this plugin started off positive and I had no problems listening to whatever stream I wanted. However yesterday morning I started having problems connecting, eventually it did connect and played happily for a couple of hours.
This evening it started playing up and would just play one track and then stop. It would then restart straight away :) but then just play one track and stop:(
I updated the plugin to the latest version and now it will not play anything. It just tries to connect and then doesn't play. I have re-entered the password a couple of times just in case. The stand alone player works fine and seems to connect and streams happily.
The whole connection thing has always been a bit flaky requiring a couple of attempts to connect properly, is this solely on the LastFM side?
The password does seem to change to a very long (32 character?) string of *'s, I assumed this was nothing to worry about and simply a case of hiding the length of the password. Is this correct?
To install the latest version I simply copied the Zipped LastFM folder into my slimserver/plugins folder, was this right thing to do? I am sure I had to do something more complicated when I first installed it but as I have said in an earlier post it took a lot of tinkering to get it to work first time and I have no idea what finally got it to work.
I will have another tinker tonight when I get home for work and hopefully I can be in LastFM heaven again!
Help?
Craig, James (IT)
2005-10-19, 02:15
Terrible problems with my pc last night & this morning but I managed to
post version 0.8.3 on my website in the end.
Fixes include:
* Crash from web page with no player
* correct generation of station list
* disable repeat scroll in main menu
* use play and/or right to navigate & select in station menu
* indicate command response status on the player display
Notes:
* The "password" that appears in the web interface is the encrypted
version, hence the different length.
* I noticed LastFM was up and down a bit yesterday.
* I have observed a problem when streaming stops working with a 'log in
again' response from LastFM.
Unfortunately as this response is passed to SlimServer in the music
stream the plugin can't see it.
I am thinking about this one. Will probably change the code to re-login
each time the settings are changed.
Anyone having problems please enable debug options d_plugins and
d_remotestream and check the log for errors.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
mattybain
2005-10-19, 11:33
I installed the new version about 1 hour ago. So far it is working brilliantly. I will stress test it a bit more tonight.
* Crash from web page with no player
I can confirm the fix. Thanks.
Having connection problems now though, I'll submit a log after work.
Me again... I can confirm that the promised fixes work, thank you. In particular I have had a couple of drop outs that the plugin has recovered from , this is a big improvement.
Now... here is I think a tricky little interaction between the web interface and the remote interface. I am testing this with softsqueeze as my SB2s are a long way from the server, but I guess it is likely the same with SB2
(1) Start softsqueeze (Don't start LastFM yet)
(2) In the web interface, navigate to the LastFM control page for this player. As its not playing, it should just say "Play LastFM"
(3) In Softsqueeze, start the LastFM plugin. It plays.
(4) Wait. Eventually the track title appears.
(5) Now press UP or DOWN to see the options ... they are all gone! All you can do is "Press Play to start LastFM", which restarts.
(6) Back at the web interface, navigate somewhere else like Home.
(7) In softsqueeze, restart LastFM. Eventually it plays and you get the track title.
(8) now UP and DOWN give you the menu items as expected
(9) NOW you can navigate to the web interface LastFM page and you get all the goodies working fine
To put it another way - it seems that the presence of the web control page when you start the plugin running messes something up!
On a separate matter, is the plugin supposed to work with two players at once? I wouldn't be surprised if this was a bit too hard, but I just thought I'd ask... I tried getting it running on Softsqueeze, then (in the web interface) taking control of an SB2, navigating to the LastFM page, and pressing play... the SB2 started playing, but Softsqueeze stopped almost immediately (although it was showing the track title that ws playing onthe SB2). Pressing play on Softsqueeze then reversed the process - it played but the SB2 stopped.
Thanks again for the good work.
Regards
Ceejay
Seems to be working much better with latest (0.83) version.
One issue seems to be when playing LastFM on 2 different units (softsqueeze and sb2), only one of the 2 units transmits the songs played to LastFM.
Another point was that when you are playing a song and press up arrow to go to "Change LastFM station" and change the channel, it should then go to the LastFM screen one which shows the current song playing. Right now, sometimes, it stays on the message "Change LastFM station". Again, this is happening when 2 different units are playing LastFM. Sometimes it also works correctly, and I can't tell if it is a long timeout issue with LastFM or the plugin.
Some suggestions:
Can you allow for a custom IR command that we could include in our slimserver\ir\custom.map file settings to allow for global settings anywhere in the SB2 or softsqueeze interface as follow:
Press and hold right arrow = lastfm skip (something like arrow_right = LastFM.skip (or whatever the LastFM plugin command would be)
Press and hold up arrow = Lastfm Love
Press and hold down arrow = Lastfm Ban
If you can't allow for interaction with custom.map, can you make a function that could be set in the serversettings\plugins - LastFM area that would allow you to turn on or off the above arrow right,down and up commands to be taken over by the LastFM plugin globally.
Also, can you allow for us to put in a shorter display update setting other than 2 minutes? This seems to really lag behind when the you first enter and "press play to enter LastFM" message is up. Same issue when actual song changes so I would like to update the display every 15 seconds for example.
If I am listening to the next song, even though the display shows the last song, and I press Love it, does LastFM plugin send the song info being displayed or the song info from the new song actually being played?
Lastly, I'm not sure if this is a LastFM issue or Slimscrobbler, but it seems that other internet radio stations songs that are played are not being sent to LastFM as a listened song, even though the display shows artist and title. For example, in listening to radioparadise.com, none of the songs played are registering in my profile as being listened to, even though my display shows Artist - Song Title when they are playing on my sb2. Songs played from my ripped flac files are showing up when listened to, and songs played from LastFM radio stations are also showing up correctly.
Thanks for your consideration.
You have built an outstanding, transforming plugin here!
Hey there James,
OK, everything is jake with .83 and 6.2b2 on OSX 10.4.2
My problem connecting to LastFM yesterday appears to have been LastFM's problem.
Have I mentioned how happy this plug-in makes me?
Thanks.
Craig, James (IT)
2005-10-20, 08:03
Ok here's some responses for the last couple of messages:
1) I wasn't expecting streaming to work on 2 devices at the same time.
>From LastFM's point of view, you're requesting 2 streams from the same
IP address (the SlimServer) and the same username so I guess they cut
off the original one when the next one starts. The only way I can see
around that is to have a different account for each player. (Not
currently possible in the plugin). Even then it might not work because
of the shared IP address.
2) When you Listen to LastFM, they log the tracks at their server. When
you listen to another internet radio station, the plays are logged by
the Slimscrobbler plugin of your SlimServer. However Slimscrobbler
ignores radio streams because the LastFM rules say to do so!
3) The custom IR map. This would be tricky at present, as all the
functions in the plugin are generic. I'm guessing you're asking because
the screensaver is jumping out of the LastFM mode all the time... If so,
two easier options here, use the 'jump back' screensaver, or I can add
an option to disable the screensaver while in the LastFM menu?
4) ceejay's web page/player issue - I can't recreate this. The web page
being active shouldn't be an issue. The setting of connection status,
track details etc is actually done by a timer, which is started by
either the web page or the player menu, depending on which you start
first. If the stream is known to be active, the full set of options
should appear in both. That's not to say there isn't a problem there,
I'm just not sure what it might be. Or it could just be a bogus response
from LastFM.
5) jump back to wrong menu - I have noticed this once but cannot
reproduce it!
6) At the moment the track info is updated every 60 seconds, 30 seconds
on the first attempt after connecting. Player display is updated
immediately, the web page is refreshed every 120 seconds. I have a new
version that
A) refreshes the track data 10 seconds after a command is sent
successfully (I tried 5 and that was too quick)
B) dynamically sets the web page refresh time based on how long it is
until the next scheduled update.
Look for a new version tomorrow.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
1) I wasn't expecting streaming to work on 2 devices at the same time.
OK, I thought this might be a bit tricky. I suppose we can always sync the players if we feel so inclined. The most annoying thing is going to be if I "sell" this successfully to other users in the house, it means that you could have your stream taken away from you at any time by another user. I don't suppose there's any way around this is there? EG if someone selects to play LastFM, check to see if its in use on another player, and warn if you're about to steal the stream?
4) ceejay's web page/player issue - I can't recreate this.
Neither can I, now!! It was quite repeatable last night, I went round a few times checking the sequence of events. I guess that means there is some other critical status which drives the problem, which I haven't spotted. This morning, in fact, I saw the same symptom - not being able to escape from "Press Play..." when I had no web interface open at all. More work clearly required on this one.
Look for a new version tomorrow.
We'll look forward to it!
Thanks
Ceejay
Ok here's some responses for the last couple of messages:
1) I wasn't expecting streaming to work on 2 devices at the same time.
>From LastFM's point of view, you're requesting 2 streams from the same
IP address (the SlimServer) and the same username so I guess they cut
off the original one when the next one starts. The only way I can see
around that is to have a different account for each player. (Not
currently possible in the plugin). Even then it might not work because
of the shared IP address..
Actually, it seems that I am able to play 2 different LastFM streams, one on softsqueeze and one on sb2, each with a different LastFM station under the same userid.
2) When you Listen to LastFM, they log the tracks at their server. When
you listen to another internet radio station, the plays are logged by
the Slimscrobbler plugin of your SlimServer. However Slimscrobbler
ignores radio streams because the LastFM rules say to do so!.
Is it possible to make this an option to turn on and off at the server\internet radio\lastfm settings to allow or disallow regular internet radio played items to be transmitted to your play stats on lastfm? That is what I listen too most so those songs and the love, ban captured stats for those songs would be relevant and useful.
3) The custom IR map. This would be tricky at present, as all the
functions in the plugin are generic. I'm guessing you're asking because
the screensaver is jumping out of the LastFM mode all the time... If so,
two easier options here, use the 'jump back' screensaver, or I can add
an option to disable the screensaver while in the LastFM menu?.
Actually, I was looking to be able to press love/ban at any level of menus when I am listening to songs. That way when something comes on, and I am in screensaver VU or in wireless signal strength, etc, I could just press and hold up or down and love or ban a song (could be lastfm played, internet radio played or played from my harddrive flac files) or right arrow press and hold to skip the song (obviously wouldn't work on internet radio, but ok on lastfm streams or harddrive streaming). If you aren't able to define a lastfm function that works with arrow_up.hold or arrow_up.repeat for example, then could you program it into the plugin to allow for optionally allowing overriding those key pressess globablly, just a thought.
6) At the moment the track info is updated every 60 seconds, 30 seconds
on the first attempt after connecting. Player display is updated
immediately, the web page is refreshed every 120 seconds. I have a new
version that
A) refreshes the track data 10 seconds after a command is sent
successfully (I tried 5 and that was too quick)
B) dynamically sets the web page refresh time based on how long it is
until the next scheduled update.?.
By this do you mean that you dynamically update the screen based on when the current song remaining time is over or if you press love/ban/skip/change Lastfm station, etc?
Look for a new version tomorrow.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.[/QUOTE]
Actually, it seems that I am able to play 2 different LastFM streams, one on softsqueeze and one on sb2, each with a different LastFM station under the same userid.
Ah. interesting eh? Can you play the same station on 2 different players? Maybe that's the problem...
Is it possible to make this an option to turn on and off at the server\internet radio\lastfm settings to allow or disallow regular internet radio played items to be transmitted to your play stats on lastfm?
LastFM specifically don't want people submitting listening details from internet radio. If you really wanted to do this you'd have to start hacking the SlimScrobbler plugin but it wouldn't be easy!
Actually, I was looking to be able to press love/ban at any level of menus when I am listening to songs. ... (could be lastfm played, internet radio played or played from my harddrive flac files)
The love/skip/ban commands are only applicable when listening to LastFM. They won't do anything if you're listening to your own music or internet radio!
Now, I can put in functions that call specific commands for direct access from the remote, but they'll only have any effect when LastFM is playing!
By this do you mean that you dynamically update the screen based on when the current song remaining time is over or if you press love/ban/skip/change Lastfm station, etc?
Yes. There should be a significant improvement in the player display updates, and a smaller one in the web page. The main problem being that you can't force the web page to update any earlier if a command is sent.
The new version is up now!
James
Oops! Small problem here with the web page refresh... I loaded up the new version, after a couple of false starts got it running, then left it to see how it would get on. This was running in Softsqueeze, with the LastFM web page active.
When I came back the player had stopped, and the web page had got itself into an infinite refresh loop, eg:
2005-10-21 09:12:35.5551 LastFM: web page refresh: -2589
2005-10-21 09:12:36.1984 LastFM: web page refresh: -2590
2005-10-21 09:12:36.9368 LastFM: web page refresh: -2590
2005-10-21 09:12:37.4824 LastFM: web page refresh: -2591
2005-10-21 09:12:38.0708 LastFM: web page refresh: -2592
2005-10-21 09:12:38.8558 LastFM: web page refresh: -2592
2005-10-21 09:12:39.4777 LastFM: web page refresh: -2593
I couldn't see what had started all this in the log file, as it had filled up and scrolled the interesting stuff off the top of the file! I guess you may need a bit more logic around
$params->{refresh} = ($players{$macaddress}->remaining - $elapsed + 5);
regards
Ceejay
Craig, James (IT)
2005-10-21, 02:08
Ah. That was a bit optimistic wasn't it?
If you're happy editing the code try adding the 2nd line:
$params->{refresh} = ($players{$macaddress}->remaining - $elapsed + 5);
$params->{refresh} = $lastfm_timeout if ($params->{refresh} <= 0);
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
OK, applied the patch. Worked ok for a while - ran for 15 minutes and then stopped - but at least the nasty loop in the web page was gone!
Log file:
2005-10-21 16:15:12.0409 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=9d2bf69d75cc112ea9661bb315ebb4cc
2005-10-21 16:15:12.3621 LastFM: streaming = true
2005-10-21 16:15:12.3629 LastFM: discovery =
2005-10-21 16:15:12.3635 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-21 16:15:12.3641 LastFM: artist = Joe Sample
2005-10-21 16:15:12.3647 LastFM: artist_url = http://www.last.fm/music/Joe+Sample
2005-10-21 16:15:12.3652 LastFM: track = First Love
2005-10-21 16:15:12.3659 LastFM: track_url = http://www.last.fm/music/Joe+Sample/_/First+Love
2005-10-21 16:15:12.3665 LastFM: album = Old Places Old Faces
2005-10-21 16:15:12.3671 LastFM: album_url = http://www.last.fm/music/Joe%20Sample/Old%20Places%20Old%20Faces
2005-10-21 16:15:12.3677 LastFM: albumcover_small = http://images-eu.amazon.com/images/P/B000002N5F.02.THUMBZZZ.jpg
2005-10-21 16:15:12.3683 LastFM: albumcover_medium = http://images-eu.amazon.com/images/P/B000002N5F.02.MZZZZZZZ.jpg
2005-10-21 16:15:12.3689 LastFM: albumcover_large = http://images-eu.amazon.com/images/P/B000002N5F.02.LZZZZZZZ.jpg
2005-10-21 16:15:12.3695 LastFM: trackduration = 281
2005-10-21 16:15:12.3701 LastFM: trackprogress = 1051
2005-10-21 16:15:12.3706 LastFM: radiomode = 1
2005-10-21 16:15:12.3712 LastFM: recordtoprofile = 1
2005-10-21 16:15:12.3732 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-21 16:15:16.9353 LastFM: web page refresh: 61
2005-10-21 16:16:12.3765 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=9d2bf69d75cc112ea9661bb315ebb4cc
2005-10-21 16:16:12.7110 LastFM: streaming = true
2005-10-21 16:16:12.7118 LastFM: discovery =
2005-10-21 16:16:12.7124 LastFM: station = Global Tag Radio: Smooth Jazz
2005-10-21 16:16:12.7130 LastFM: artist = Joe Sample
2005-10-21 16:16:12.7136 LastFM: artist_url = http://www.last.fm/music/Joe+Sample
2005-10-21 16:16:12.7142 LastFM: track = First Love
2005-10-21 16:16:12.7148 LastFM: track_url = http://www.last.fm/music/Joe+Sample/_/First+Love
2005-10-21 16:16:12.7154 LastFM: album = Old Places Old Faces
2005-10-21 16:16:12.7160 LastFM: album_url = http://www.last.fm/music/Joe%20Sample/Old%20Places%20Old%20Faces
2005-10-21 16:16:12.7166 LastFM: albumcover_small = http://images-eu.amazon.com/images/P/B000002N5F.02.THUMBZZZ.jpg
2005-10-21 16:16:12.7173 LastFM: albumcover_medium = http://images-eu.amazon.com/images/P/B000002N5F.02.MZZZZZZZ.jpg
2005-10-21 16:16:12.7179 LastFM: albumcover_large = http://images-eu.amazon.com/images/P/B000002N5F.02.LZZZZZZZ.jpg
2005-10-21 16:16:12.7185 LastFM: trackduration = 281
2005-10-21 16:16:12.7190 LastFM: trackprogress = 1112
2005-10-21 16:16:12.7196 LastFM: radiomode = 1
2005-10-21 16:16:12.7202 LastFM: recordtoprofile = 1
2005-10-21 16:16:12.7222 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-21 16:16:18.2420 LastFM: web page refresh: 59
2005-10-21 16:17:12.7336 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=9d2bf69d75cc112ea9661bb315ebb4cc
2005-10-21 16:17:12.9972 LastFM: streaming = false
2005-10-21 16:17:12.9984 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-21 16:17:17.5464 LastFM: web page refresh: 60
2005-10-21 16:18:13.0100 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=9d2bf69d75cc112ea9661bb315ebb4cc
2005-10-21 16:18:13.2473 LastFM: streaming = false
2005-10-21 16:18:13.2485 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-21 16:18:17.6974 LastFM: web page refresh: 61
2005-10-21 16:19:13.2567 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=9d2bf69d75cc112ea9661bb315ebb4cc
2005-10-21 16:19:13.4807 LastFM: streaming = false
2005-10-21 16:19:13.4819 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-21 16:19:18.9196 LastFM: web page refresh: 60
2005-10-21 16:20:13.4880 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=9d2bf69d75cc112ea9661bb315ebb4cc
2005-10-21 16:20:13.7692 LastFM: streaming = false
2005-10-21 16:20:13.7703 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-21 16:20:19.1123 LastFM: web page refresh: 59
2005-10-21 16:21:13.7806 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=9d2bf69d75cc112ea9661bb315ebb4cc
2005-10-21 16:21:14.6789 LastFM: streaming = false
2005-10-21 16:21:14.6798 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-21 16:21:18.2680 LastFM: web page refresh: 60
softsqueeze is now continuing to show the last track title, elapsed time alternating between 16:41 and 16:42, no sound, not recovering from lost contact...
Ceejay
Craig, James (IT)
2005-10-21, 08:31
This is correct behaviour really.
Looks like LastFM cut you off.
You just need to hit play again to get it going...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
James,
Thanks for your comments to my questions/issues previously.
I appreciate your efforts on this.
Sweet plugin!
hey no problem. I just wish *I* had the time to actually listen with the plugin!
I posted a new version (0.8.5) that fixes the web refresh problem that Ceejay caught above. Couple of other tweaks including skip/love/ban functions that you could use in a custom.ir map file.
James
Couple of other tweaks including skip/love/ban functions that you could use in a custom.ir map file.
James
What commands could we use in custom.map file then.
arrow_right.repeat = ???
or
arrow_right.hold = ???
What is the ??? for skip/ban/love.
Thanks again and I will test this weekend.
The functions are:
lastfm_skip
lastfm_love
lastfm_ban
Let me know if they work!
James
Hi James
Just for a change I thought I'd put up a post that doesn't have a bug report or log in it. All working very well this morning, and we have a very high WAF !
My only problem now is going to be when we all try to use it at once....
Great stuff, much appreciated. The LastFM concept is fantastic, and now you've brought it to the SB2, I can access it throughout the house. Time to put my money where my mouth is and subscribe to LastFM!
Regards
Ceejay
The ir custom codes are working.
I have:
arrow_up.hold = lastfm.love
arrow_down.hold = lastfm.ban
arrow_right.hold = lastfm.skip
Is there a mode that I can define in custom.map similar to [common] so that I can desingate when to use the custom command?
I am still trying to figure out press and hold of up/down/right key seems to first issue a arrow up/down/etc. then the hold command so if you are viewing the lastfm playing screen it will go up or down to the next screen then submit the custom hold command which is love or ban in my custom.map.
Everything else seems to be smooooothhhh.
There is Joy in Mudville
Thanks
After some testing, I am running into the following issues. Not sure of the exact cause but the LastFM main menu which shows "Press Play to start Lastfm" when you initially connect and shows the song now playing when it is connected does the following:
When I initiate LastFM for the first time, works fine - first shows "press play...", then starts the song from my last selected station, then shows the song title, etc.
When I forward a song, it will forward to the next song, however many times the song title will not show up, only "press play..". Sometimes it will stay on "press play" and if you press "now playing" it will stay on the prior songs title. Many times it will take another song or two for the display to update with the most current song instead of "press play" or the old song in "now playing".
Then sometimes it will be showing a song title, then when the screensaver starts, and if you exit screensaver, it will revert to "press play".
There seems to be a timing and refresh issue with the new song info.
Philip Meyer
2005-10-23, 03:11
>arrow_up.hold = lastfm.love
>arrow_down.hold = lastfm.ban
>arrow_right.hold = lastfm.skip
>
>I am still trying to figure out press and hold of up/down/right key
>seems to first issue a arrow up/down/etc. then the hold command so if
>you are viewing the lastfm playing screen it will go up or down to the
>next screen then submit the custom hold command which is love or ban in
>my custom.map.
>
You need to set the single key action and hold key action, with a dead command for the keyname. eg:
arrow_up = dead
arrow_up.single = up
arrow_up.hold = lastfm.love
I have a similar thing for the shuffle key (hold = play random songs), which works.
However, I don't know what effect this will have on browsing through menus, as arrow up can be held to move up through the list of options. I notice there is a arrow_up.repeat = up_repeat. I don't know what the difference between .repeat and .hold is!
Phil
Is there a slimserver modename for when you are in LastFm plugin similar to [moodlogic_instant_mix] that I can include in the custom.map ir mapping function to include custom ir commands on button pushes only when in LastFM mode?
Unfortunately I don't understand the mechanics of Slimserver Plugins well enough (yet) to know if this makes sense but...
A couple of times in the last day or so I have noticed that the plugin gets its knickers in a bit of a twist - and going back to the top of the menu and "restarting" doesn't fix it. I've had to stop and restart slimserver to get it working again.
Does this mean that the plugin isn't initialising itself fully when you come in from the top of the menus? (I suppose you might not want it always to do this, especially if you've just been off browsing somewhere else).
Is it possible to have a "restart plugin" function in either the web or remote interface that reinitialises? I'd be happy enough to do that occasionally if necessary, its a lot better than having to restart slimserver...
Many thanks
Ceejay
Craig, James (IT)
2005-10-24, 02:35
> Is there a slimserver modename for when you are in LastFm
> plugin similar
> to [moodlogic_instant_mix] that I can include in the custom.map ir
> mapping function to include custom ir commands on button pushes only
> when in LastFM mode?
>
[PLUGIN.LastFM] I think?
Have you got the functions right?
Should be lastfm_skip not lastfm.skip.
Or possibly LastFM.lastfm_skip ?
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
Craig, James (IT)
2005-10-24, 02:48
Replying to ceejay and rme's issues with track info updates, we really
need to see the "d_plugins" log from this to see what's happening.
If you needed to start the music again by pressing play (anywhere) then
LastFM cut you off.
If the music continues and the plugin eventually recovers itself, it's
most likely this is LastFM temporarily giving incorrect status reports.
(you may see LastFM: streaming = FALSE in the log)
If the music continued and the plugin didn't recover then there is a bug
somewhere!
(most likely the timer got unset, so you'd no longer see the 'LastFM:
Setting timer for...' message in the log')
The background timer is only started the first time the plugin is
activated for each player (whether from the web page or menu) and at
present there's no way to restart it. I will probably add a link to
restart the timer and re-login into LastFM from the web page.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
As noted in another thread, right now I have an example of being "stuck" in the LastFM plugin.
Recent log follows: 2005-10-24 12:23:29.6629 Response: HTTP/1.0 401 Invalid session - login again
2005-10-24 12:23:29.6633 Invalid response code (401) from remote stream http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad
2005-10-24 12:23:40.1624 Opening connection to http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad: [streamer1.audioscrobbler.com on port 80 with path /last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad with timeout 5]
2005-10-24 12:23:40.1936 Request: GET /last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Windows; N; Windows XP; 586; EN; cp1252) SlimServer/6.1.0/3758
Icy-MetaData: 1
Connection: close
Host: streamer1.audioscrobbler.com
2005-10-24 12:23:40.2342 Response: HTTP/1.0 401 Invalid session - login again
2005-10-24 12:23:40.2346 Invalid response code (401) from remote stream http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad
2005-10-24 12:23:57.7059 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-24 12:24:17.5568 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-24 12:24:20.6446 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-24 12:24:49.0945 RssNews: getting feed from http://www.guardian.co.uk/rssfeed/0,15065,19,00.xml
2005-10-24 12:24:49.0953 Opening connection to http://www.guardian.co.uk/rssfeed/0,15065,19,00.xml: [www.guardian.co.uk on port 80 with path /rssfeed/0,15065,19,00.xml with timeout 5]
2005-10-24 12:24:49.1391 Request: GET /rssfeed/0,15065,19,00.xml HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Windows; N; Windows XP; 586; EN; cp1252) SlimServer/6.1.0/3758
Icy-MetaData: 1
Connection: close
Host: www.guardian.co.uk
2005-10-24 12:24:49.2570 Response: HTTP/1.0 200 OK
2005-10-24 12:24:49.2618 header: Accept-Ranges: bytes
2005-10-24 12:24:49.2635 header: Date: Mon, 24 Oct 2005 11:24:48 GMT
2005-10-24 12:24:49.2648 header: Content-Length: 9673
2005-10-24 12:24:49.2665 header: Content-Type: text/xml
2005-10-24 12:24:49.2708 header: Server: Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7d
2005-10-24 12:24:49.2741 header: Set-Cookie: GU_MU=UldINlN3cjdESElBQUJQUFREd0FBQUF2fHFieGx1OHFk aEt2Rkl3Slo2SjdEdmc9PQ==; path=/; domain=.guardian.co.uk; expires=Thu, 22-Oct-2015 11:24:48 GMT
2005-10-24 12:24:49.2768 header: Last-Modified: Mon, 24 Oct 2005 10:12:12 GMT
2005-10-24 12:24:49.2782 header: ETag: "25c9-41b6d700"
2005-10-24 12:24:49.2791 header:
2005-10-24 12:24:49.2793 Recieved final blank line...
2005-10-24 12:24:49.2796 opened stream!
2005-10-24 12:24:50.2034 Slim::Player::Protocols::HTTP - in DESTROY
2005-10-24 12:24:50.2039 Slim::Player::Protocols::HTTP About to close socket to: [http://www.guardian.co.uk/rssfeed/0,15065,19,00.xml]
2005-10-24 12:24:57.7110 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-24 12:25:17.5585 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-24 12:25:20.9732 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-24 12:25:45.7251 Opening connection to http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad: [streamer1.audioscrobbler.com on port 80 with path /last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad with timeout 5]
2005-10-24 12:25:45.7583 Request: GET /last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Windows; N; Windows XP; 586; EN; cp1252) SlimServer/6.1.0/3758
Icy-MetaData: 1
Connection: close
Host: streamer1.audioscrobbler.com
2005-10-24 12:25:45.8047 Response: HTTP/1.0 200 OK
2005-10-24 12:25:45.9362 header: Date: Mon, 24 Oct 2005 11:25:45 GMT
2005-10-24 12:25:45.9383 header: Content-Type: audio/mpeg
2005-10-24 12:25:46.0349 header: Server: last.fm Streaming Server
2005-10-24 12:25:46.0362 header:
2005-10-24 12:25:46.0365 Recieved final blank line...
2005-10-24 12:25:46.0367 opened stream!
2005-10-24 12:25:46.6488 Slim::Player::Protocols::HTTP - in DESTROY
2005-10-24 12:25:46.6492 Slim::Player::Protocols::HTTP About to close socket to: [http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad]
2005-10-24 12:25:57.7133 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-24 12:26:13.4670 Opening connection to http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad: [streamer1.audioscrobbler.com on port 80 with path /last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad with timeout 5]
2005-10-24 12:26:13.4982 Request: GET /last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Windows; N; Windows XP; 586; EN; cp1252) SlimServer/6.1.0/3758
Icy-MetaData: 1
Connection: close
Host: streamer1.audioscrobbler.com
2005-10-24 12:26:13.5380 Response: HTTP/1.0 401 Invalid session - login again
2005-10-24 12:26:13.5385 Invalid response code (401) from remote stream http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad
2005-10-24 12:26:17.5609 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-24 12:26:20.9752 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-24 12:26:58.2282 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-24 12:27:17.5633 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-24 12:27:20.9775 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-24 12:27:39.2506 Opening connection to http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad: [streamer1.audioscrobbler.com on port 80 with path /last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad with timeout 5]
2005-10-24 12:27:39.2724 Request: GET /last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad HTTP/1.0
Accept: */*
Cache-Control: no-cache
User-Agent: iTunes/4.7.1 (Windows; N; Windows XP; 586; EN; cp1252) SlimServer/6.1.0/3758
Icy-MetaData: 1
Connection: close
Host: streamer1.audioscrobbler.com
2005-10-24 12:27:39.3130 Response: HTTP/1.0 401 Invalid session - login again
2005-10-24 12:27:39.3134 Invalid response code (401) from remote stream http://streamer1.audioscrobbler.com/last.mp3?Session=6b38b67a4e2a158673dfe25f7d0761ad
2005-10-24 12:27:58.2307 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-24 12:28:17.5671 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-24 12:28:20.9812 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-24 12:28:58.2326 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
2005-10-24 12:29:17.5710 LastFM: Setting timer for 60 seconds for 00:04:20:05:b5:39
2005-10-24 12:29:21.9981 LastFM: Setting timer for 60 seconds for 1b:e3:fa:2a:94:e8
2005-10-24 12:29:58.2348 LastFM: Setting timer for 60 seconds for 00:04:20:05:b6:86
- I note that its setting the timer for my two SB2s, even though they are turned off at the moment (they were on earlier), not sure if this is intended
- I've pressed "play" on the softsqueeze interface and on the web interface, I'm being ignored. Previous experience suggests that only restarting slimserver will get me out of this one.
Note that the lastfm standalone player is working fine, connects and plays immediately.
I like the idea of being able to restart from the web interface, though as we can see here the timer is in fact being set. If theres some more specific testing or logging that would be helpful, please let me know.
Regards
Ceejay
Craig, James (IT)
2005-10-24, 04:47
Ah this is the problem that came up before.
The message:
2005-10-24 12:23:40.2342 Response: HTTP/1.0 401 Invalid session - login
again
is LastFM's response to SlimServer trying to play the stream.
So you're not being ignored, but this error is passed to the SlimServer
audio streaming code,
and the LastFM plugin has no way of knowing it's happened.
And at present there's no way to force the required login anyway!
The timer looks fine, it's easier to keep it running forever than try
starting and stopping it.
It won't actually do any work unless the player is on and playing the
LastFM stream.
So I will let you know when I have a solution for this...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
> Have you got the functions right?
Should be lastfm_skip not lastfm.skip.
Or possibly LastFM.lastfm_skip ?
I will try again this weekend when I get back.
I originally got arrow_up.hold = lastfm.love, etc. working, with the exception that it would issue one up command on the menu first, then I would see "submitted to Lastfm" or something like that. So I would originally be watching the name of the song, press and hold up (or down...) and then the display would move up to the next menu item, then show "submitted to Lastfm" then return to the menu item above the song titles, etc.
When I tried arrow_up = dead, arrow_up.single= up, arrow_up.hold=lastfm.love it really didn't work well as the single arrow up action froze up.
So I will try again with the additional info you provided and let you know. Also, I will post debug logs for the issue of getting stuck on the menu saying "press play to connect to lastfm" even though music is playing from lastfm. I'll post this weekend if ceejay's info didn't point you in the right direction.
New version 0.8.6 posted.
There is a new link on the LastFM webpage within SlimServer, 'Refresh Sessions'. Clicking this will redo the login process with LastFM for the selected player. (Changing your password will do it for all active sessions.)
Give this a try if you're seeing the invalid session error discussed above.
I think I might have broken the web page in 0.8.5 as well?
James
James
Have been using 0.8.6 this morning, together with slimserver 6.2.0 (just upgraded).
Ran very sweetly for about 90 minutes, much appreciated by the SO!
Stopped when I had a network problem (mine, unfortunately, I really must track it down soon). The LastFM plugin didn't manage to restart itself, or by pressing "play" on the remote interface.
However the new "refresh sessions" feature in the web interface seems to have done the trick (I had to try it a couple of times, this could of course have been impatience on my part), so its now running again without having to restart slimserver. Excellent.
Thanks
Ceejay
I'm new to this plugin and Last.fm in general. I've installed the plugin but it is not functioning as I expected. Is it fully "slimserver" functional or just a simple player for now? It's seems very sparse (not complaining, just asking):
Web interface doesn't do anything but start and stop the player and says " Error connecting to LastFM! Check network connection and www.Last.fm status"
In web interface and softsqueeze/squeezebox display, I don't see the name of the current song or playlist or station.
Please advise.
*Bradley
mattybain
2005-10-25, 11:33
The lastfm plugin is fully functional and acts just like the stand alone player.
I have been having problems with the web interface but the latest verison seems to have fixed it (0.8.6).
What you should see is the radio stream you are listening to, the song, the artist some cover art,recently played,Commands (skip ban love),all your radio stations set up and finally a link to settings and refresh session (whatever that does).
What more could you possibly want?
If the link isn't working then you will see very little on the screen other than press play to start lastfm (or something like that).
I would suggest you install the latest version and then check your settings.
I took your suggestion, re-downloaded and re-installed it. Now it seems to be working perfectly.
Thanks for the tip!
*Bradley
New version 0.8.6 posted.
There is a new link on the LastFM webpage within SlimServer, 'Refresh Sessions'. Clicking this will redo the login process with LastFM for the selected player. (Changing your password will do it for all active sessions.)
James
Is there a way to add the refresh sessions option to the lastfm menu's on the sb2 in addition to the web interface. Right when you press right arrow on LastFm, then you get press play to launch Lastfm or up to restart. And then allow play, or right to launch and up to go the restart menu and then play or right to relaunch from there, or something like that.
That way you don't need to go to the pc, upstairs, etc to fix the problem.
An additional question, is there a way to program around the dreading hanging of the lastfm plugin sometimes so it doesn't need to be reset, or is that an issue from beyond...
Thanks for the consideration.
Is there a way to add the refresh sessions option to the lastfm menu's on the sb2
Yes I will add this. I only didn't as it's so much easier to add stuff in the web page than the player menus!
is there a way to program around the dreading hanging of the lastfm plugin sometimes so it doesn't need to be reset, or is that an issue from beyond...
I think that I should have most things covered now.
The big problem is when LastFM invalidates your session for some unknown reason. Only the streaming side of SlimServer ever sees that error, so the plugin can't do anything. I feel this must be something to do with running streams from multiple players...
James
posted version 0.9.0
This one logs into LastFM every time playback is started from within the plugin so should mean the end of invalid session errors etc.
James
Philip Meyer
2005-10-27, 17:18
>posted version 0.9.0
>
I've downloaded this - just installing now. However, be aware that your website still lists it as version 0.8.6 (left-hand column of table).
Phil
Hi James
Been trying 0.9.0 this morning. Worked fine for about 90 minutes, then stopped (not sure why, could have been any of a number of things including an intermittent problem on my own network). However I've not been able to restart. In the attached log you'll see several failed attempts to restart by pressing play on softsqueeze.
Back in the web interface, the option to restart the session seems to have gone away (? because you do this everytime we press play now ?).
Looks like I'm stuck and will have to restart slimserver, which is a shame.
Ceejay
Craig, James (IT)
2005-10-28, 03:40
Hi Ceejay,
This looks fine to me. Is LastFM working in the stand alone player?
The refresh sessions button is gone because we now do this each time
playback starts. This appears to be working from your logfile.
You don't have to start playback from the plugin though, you can press
play from now playing, but this won't regenerate the session id.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
I think the gremlins are out in force today, I have no idea what's working and what isn't!! I think LastFM was working at the time I was tracing, but since then its been very intermittent, so its a bit hard to do any fair testing. Add that to some SS 6.2 and/or Softsqueeze problems and its a miracle I've got any hair left at all.
I think I'll just go and lie down somewhere quietly and hope it all goes away. Maybe when I come back it will all be better. :)
Regards
Ceejay
Craig, James (IT)
2005-10-28, 08:46
If it makes you feel any better I've been unable to get LastFM to play
today either...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
v0.9 seems to be working well so far.
Are you able to code/build player level settings for lastfm plugin instead of server level settings?
Because slimscrobbler now allows for multiple lastfm accounts, it would be great to be able to add the userid/account name to be used at each player level and stored there.
If not, is there a way to build in player name/lastfm account name settings at the server level?
Yes that's on my to-do list.
Ian asked me about merging the plugins or sharing the login details at least and that would make it easy to set up multiple logins.
James
had a moment free so I knocked up v0.9.1.
Experimental support for SlimScrobbler logins added!
Theoretically allows use of multiple accounts.
I won't say this has been thoroughly tested but it works OK with a single SlimScrobbler account. Just enable the option under LastFM settings.
James
I'm a new user to this plugin, and so far I love it! (when it works)
I read back in the posts, and maybe this is a problem other people are having??
the issue is that after working fine, the next time I try to use the plugin, I get a "can't connect to last.fm" error. Then, often, music will start to stream anyway, and the title/artist info will stay unchanged at the last song listened to during the _previous_ session.
Restarting slimserver solves the problem.
Is it that I'm not "ending" the session properly? All I did was turn the power off...
EDIT: I'm running plugin 0.9.1 on slimserver 6.2.0 on Mandriva linux
Chris
I'm not sure why that would be happening.
Are you starting playback from the plugin or from the playlist?
As of 0.9 every time you start playback from the plugin we get a new session id from LastFM and restart the internal timer, so you should never need to restart SlimServer (in theory!).
Can you enable the d_plugins and d_remotestream logging options and send me the output next time it happens? Even the output from after it happens, while it's broken could help.
James
I think the gremlins are out in force today, I have no idea what's working and what isn't!! I think LastFM was working at the time I was tracing, but since then its been very intermittent, so its a bit hard to do any fair testing.
http://www.last.fm/forum/21713/_/51596
I raised this same issue on the LastFM forums recently and someone pointed me in the direction of this thread, which shows the current LastFM system status.
If you look at the "Edited by" line at the bottom, it seems to be updated fairly regularly.
May help with future testing ?
I raised this same issue on the LastFM forums recently and someone pointed me in the direction of this thread, which shows the current LastFM system status.
If you look at the "Edited by" line at the bottom, it seems to be updated fairly regularly.
May help with future testing ?
Thanks for the pointer. This link is fine for major outages, but its nothing like real time - as I look at it right now, the last update shown was 15 hours ago ... and I think the service is a lot more volatile than that. Its a shame, the lastFM / slimserver is a fantastic concept, and when it works its brilliant, but its not working consistently for me at the moment. I think I'll be trying harder to get it going when SS 6.2 has settled down a bit more.
Regards
Ceejay
Craig, James (IT)
2005-10-31, 08:24
Ah ha!
I found the bug today after hitting some unavailable errors from LastFM.
This does cause the timer to get unset - bad test in my code.
New version will be posted tonight-ish.
Any feedback on the use of logins from SlimScrobbler?
I feel a v1.0 coming on...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
Sounds good, I'll look forward to trying it out!
I've not tried the 0.9.1 version with the multiple logins yet, though I can see it how it might be useful (right now my lastfm profile is being filled up with my kids' "Elbow", I'm having to make sure I play plenty of Pink Floyd to stay ahead!!)
Worth noting that the standalone LastFM player isn't entirely successful at recovering from interruptions, either.
My wife will be very pleased if this gets really stable, and as we all know that's worth a lot (like permission to buy a new SB3...)
Ceejay
I'm not sure why that would be happening.
Are you starting playback from the plugin or from the playlist?
As of 0.9 every time you start playback from the plugin we get a new session id from LastFM and restart the internal timer, so you should never need to restart SlimServer (in theory!).
Can you enable the d_plugins and d_remotestream logging options and send me the output next time it happens? Even the output from after it happens, while it's broken could help.
James
Well, I'm starting it from the SB2 "Internet Radio" Menu item...
But I'm having trouble reproducing the problem. The last couple of times I've started it, it's worked except for one hiccup: I have to "Press play to connect" twice. I press it once and wait a minute or so and nothing seems to happen... I press play again and the stream starts properly with the correct artist/title, etc.
So, "So far so good!" I'll post debugging output if the problem happens again...
Thanks,
Chris
v1.0.0 is up now!
Changes:
* fixed the bug above caused by failed connections to LastFM stopping updates
* jump to LastFM mode on player when playback started from web
* better state tracking. Main benefit here is the 'press play' message is replaced with 'please wait' until we connect to LastFM for the first time.
* wierd bug fixed where playback was being started twice from the web page. May have been why it often didn't start properly...
James
Some feedback,
I've been using the multiple logins for slimscrobbler for some 3 days now, and it works great! Family members listen with softsqueeze at work/other houses/wherever, while server is at home. Each one has its own lastfm user, and it works great.
OK, here we go again! Tried new version 1.0.0. Works nicely for about 22 minutes, then stops (probably my network glitching again).
Some slightly odd behaviour before it restarted: log file, with some annotation, attached here.
I guess the main problem is that with streaming stopped, the plugin carries on regardless. I think you've said this is tricky to spot as the failure notifcation never gets to the plugin, but I noticed two things - one, there is a "failed" detetction, and two, there is the giveaway that the track progress keeps going up till it goes beyond track duration, at which point you might fairly deduce there is a problem.
Anyway, I kicked it a few times with play and it did restart (playing nicely now) so we're not doing too badly here!
Many thanks again...
Ceejay
Craig, James (IT)
2005-11-01, 10:40
Hi Ceejay,
I haven't seen the progress > duration for quite some time! That used to
happen a lot...
I can put in a check that detects this overrun and produces a warning
(although your ears will already have detected this problem),
but I don't really want to start automatically restarting the stream.
I don't believe any of the other internet radio plugins/services do this
so I think it's the correct behaviour.
Are you trying to restart playback from the LastFM player menu?
I'm not sure this will do anything at all if the plugin thinks streaming
is working.
This could be the cause of the ignored commands!
Although it looks like you managed to start playback from the plugin
(the webpage maybe?) eventually...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
vayaruina
2005-11-01, 10:47
Hi ,
i´ve registered on LastFM just today.
I´m playing it from a SlimServer on Windows XP ( without SlimScroler , and no Perl module added neither ).
At the begining ( before the first connection ) my Slimserver could´nt connect , then i stop the play and go into LastFM with the Web Interface ( throught the PC ). After that , i stopped the Web Interface , and then ... the Slimserver connected right and bring me up a useful menu.
I´ve detected that when you´re connected and registered trought the PC you can not obtain detailed information throught the Slim Server Web Interface ( but it sounds anyway ) .
;)
I can put in a check that detects this overrun and produces a warning
(although your ears will already have detected this problem),
but I don't really want to start automatically restarting the stream.
I don't believe any of the other internet radio plugins/services do this
so I think it's the correct behaviour.
Are you trying to restart playback from the LastFM player menu?
I'm not sure this will do anything at all if the plugin thinks streaming
is working.
This could be the cause of the ignored commands!
Although it looks like you managed to start playback from the plugin
(the webpage maybe?) eventually...
I guess I'm not really bothered about automatically restarting, as long as I can easily restart by pressing "play" (or something). I was trying to restart using the remote (actually softsqueeze) interface, but as you say if the plugin thinks its working it will ignore me.
How about a behaviour such that when the plugin thinks that the stream has stopped (eg progress > duration) it displays a message along the lines of "Contact lost - press play to restart" ? Then at least it can be expecting the command to restart and not just ignoring me!! To be honest, I'm not quite sure what I did that eventually got it going, I just pushed buttons.
As it happens, while typing this in, its just stopped again (90 mins playing this time), and again theres nothing in the log to show theres anything wrong.
On the remote menu, going back to "LastFM ->" and pressing "play" took me into the "now playing mode" ((showed last track name), pressing play again caused an attempted reconnection (which failed), pressing play the third time caused another attempted reconnection (which worked).
I think this may be exactly the same as last time, as captured in the log file I posted, so I won't post another one.
Hope this helps...
Ceejay
FWIW, my experience with 1.0.0:
I still have to press Play twice to get the stream to start. The first time, I just get the Song Title "LastFM" with the VU meters all at the bottom. Pressing Play again then starts the stream and artist/title display as expected...
It appears this only happens when first starting a stream, as I had to restart slimserver in order to reproduce the problem.
I've attached the debugging output in case it's at all useful...
Well, I've been giving the 1.0.0 version of the plugin some fairly heavy use for the last couple of days, and its working well - certainly above the "usable" threshold !
It does lose the connection fairly regularly, though I'm sure this isn't the plugin's fault. And I can now get it restarted reliably - though I generally have to press "play" more than once to do it.
So my remaining requests are lower priority, more in the category of "things to have a look at next time you're in there". It would be nice if the plugin could react earlier to a lost stream - the logs consistently show a "LastFM: Connection failed!" message at about the time the stream is lost, and progress > duration should also be an indicator (though NB I have spotted at least one instance in the log, at the end of a track, when progress > duration, without there being a problem - perhaps you would need to check for progress > duration + timeout or similar). And it would be nice for "play" to work first time after a restart.
But, overall, I'm dead chuffed with this. I've subscribed to LastFM and it really is changing the way I listen to music. Now if only the LastFM service itself were just a little more reliable....
So, loads of thanks!
Ceejay
dallan73
2005-11-03, 05:55
I totally agree with ceejay. This has added a new dimension to the squeezebox and I am now listening to Last FM more than any of the albums that I've ripped.
Many thanks,
David.
V.1.0.0 works ok for me, except when I try to change to or play my personal station - i.e user/myname. Then slimserver crashes immediately on trying to change the channel(running on Linux, not Windows).
There is no debug output using d_plugins - is there any better one to try to give feedback ?
If I roll back to v0.9 it works fine.
V.1.0.0 works ok for me, except when I try to change to or play my personal station - i.e user/myname. Then slimserver crashes immediately on trying to change the channel(running on Linux, not Windows).
There is no debug output using d_plugins - is there any better one to try to give feedback ?
If I roll back to v0.9 it works fine.
Wow! I obviously haven't been testing it as hard as I thought I had! I have exactly the same problem, on Windows. I can change to other stations (haven't tried all, but a few all worked) but the moment I selected my own personal station, instant slimserver crash. Hopefully not too hard to find??
Ceejay
Further to my last message, I rolled back to 0.9 and had the same problem. Just a thought - is this something to do with the way favourite stations are added to the list in the web interface? I have a recollection, which could easily be wrong, that ../neighbours, ../personal got automatically added to the list (I am a subscriber)?? This doesn't seem to be happening any more, I wonder if playing our personal stations is pointing off to an entry in a list which isn't there...
Unfortunately my Perl isn't quite good enough to figure this out myself!
Ceejay
Pardon me for gibbering in my last post (its late), I was confused with the list of personal stations which automatically gets generated on the web page, this is working fine.
However I think I'm closer to the problem: from the web interface I can select my personal radio and it works ok. I have a list of user/Ceejayfm/personal, ../neighbours, ../loved to choose from.
But on the remote interface I see just one item, "user/Ceejayfm ->" If I select this I get a slimserver crash, immediately, every time.
I guess this is meant to point to a submenu with the three personal radio options? And that there is something wrong in the code for this menu?
Or... are we meant to see the three options spelt out at the same level as our user-defined favourite stations, but something has gone wrong with the code to generate these?
I'll shut up now before I expose how little I really know about this...
Thanks
Ceejay
Craig, James (IT)
2005-11-04, 02:52
Oops. Not being a subscriber I never tested that bit.
I'm not sure when I'll be able to post a fix, probably not until Sunday,
so this is what needs changing if you're keen:
Plugin.pm line 475:
overlayRef => sub {return
(undef,Slim::Display::Display::symbol('rightarrow' ));},
Should be:
overlayRef =>
[undef,Slim::Display::Display::symbol('rightarrow')],
Ceejay's first suggestion is correct, there should be a sub-menu for
subscribers only.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
so this is what needs changing if you're keen:
Plugin.pm line 475:
overlayRef => sub {return
(undef,Slim::Display::Display::symbol('rightarrow' ));},
Should be:
overlayRef =>
[undef,Slim::Display::Display::symbol('rightarrow')],
Yes, that works!
In testing this, I think I now realise why I didn't find it earlier - I don't actually like what they send to me as my personal radio very much, so didn't try it. I know this is counterintuitive to the LastFM concept - I'm not sure if this is because my kids have polluted my track record by playing their own trash, or if LastFM have a different idea from me of what is "like" the stuff I normally play. Still, thats another problem altogether - the plugin is working well, and the "similar artist" and "global tag" radio stations are giving me stuff I enjoy, so I'm happy.
Thanks James!
Regards
Ceejay
>arrow_up.hold = lastfm.love
>arrow_down.hold = lastfm.ban
>arrow_right.hold = lastfm.skip
>
>I am still trying to figure out press and hold of up/down/right key
>seems to first issue a arrow up/down/etc. then the hold command so if
>you are viewing the lastfm playing screen it will go up or down to the
>next screen then submit the custom hold command which is love or ban in
>my custom.map.
>
You need to set the single key action and hold key action, with a dead command for the keyname. eg:
arrow_up = dead
arrow_up.single = up
arrow_up.hold = lastfm.love
I have a similar thing for the shuffle key (hold = play random songs), which works.
However, I don't know what effect this will have on browsing through menus, as arrow up can be held to move up through the list of options. I notice there is a arrow_up.repeat = up_repeat. I don't know what the difference between .repeat and .hold is!
Phil
I tried the arrow_up=dead, arrow_up.single=up and arrow_up.hold=lastfm_love which you suggested above and got difficult results.
What happens is that pressing and holding arrow up will kind of freeze for a while and then maybe move up or submit. And normal single arrow up presses are frozen as well most times.
Any additional thoughts on how to custom map arrow up & hold so that it does not single arrow up in a menu then issue the hold command?
Thanks
Hi!
hm...
This is really great Plugins (Thanks!) and it will be nice to use it then my SB3 shows up next week. (I hope).
Works now, sorry and thanks again.
/Bernt
Craig, James (IT)
2005-11-04, 09:07
Hi Bernt,
Could you enable the d_plugins and d_remotestream debugging options, try
again and send me the output?
Note that it frequently doesn't connect on the first attempt.
Try pressing play again from the now playing/playlist screen and see if
that helps.
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
James - thanks, as always - working fine now.
Ceejay, if you can bear it, you can always go to the LastFM site and use the Profile Editor to remove the offending items ! I've only ever used it to remove the odd track rather than lots and lots, but it does seem to make a difference. I get a lot less Britney for one thing... ;-)
My pet bugbear with LastFM is mistagged songs. My globaltag/latin listening evening last night was interrupted on a number of occasions by a) some serious thrash metal b) a Backstreet Boys track [in English] and (most strangely of all) c) Biork...
Yes, that works!
In testing this, I think I now realise why I didn't find it earlier - I don't actually like what they send to me as my personal radio very much, so didn't try it. I know this is counterintuitive to the LastFM concept - I'm not sure if this is because my kids have polluted my track record by playing their own trash, or if LastFM have a different idea from me of what is "like" the stuff I normally play. Still, thats another problem altogether - the plugin is working well, and the "similar artist" and "global tag" radio stations are giving me stuff I enjoy, so I'm happy.
Thanks James!
Regards
Ceejay
My pet bugbear with LastFM is mistagged songs. My globaltag/latin listening evening last night was interrupted on a number of occasions by a) some serious thrash metal b) a Backstreet Boys track [in English] and (most strangely of all) c) Biork...
Yes, it does get a bit odd sometimes - but I'm not sure that your examples match my experience of "Artists like Beethoven" = "Alice in Chains" !
Still a great concept, though.
Ceejay
Craig, James (IT)
2005-11-07, 04:06
I posted a fix for the subscribers menu crash last night.
I started on the ignored restart/track overrun issue but forgot what I
changed...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
Hi James,
I find LastFM is dominating my listening these days, so thanks so much. I've been trying to figure out how to enter multiple artists in the SlimServer interface to LastFM radio: I know that the structure is:
artist/artistname/similarartists - for example artist/Queens+of+the+Stone+Age/similar artists
but what if I want to listen to a station using multiple artists as my similar artists?
In the LastFM standalone player you can do this by separating artist names with commas, but is this true on the LastFM SlimServer plug-in as well? I can't seem to format it properly.
So far, I've tried:
artist/Queens+of+the+Stone+Age%2C+Orange+Goblin%2C+Fu+Man chu/similarartists
artist/Queens+of+the+Stone+Age%2COrange+Goblin%2CFu+Manch u/similarartists
artist/Queens+of+the+Stone+Age,Orange+Goblin,Fu+Manchu/similarartists
HELP! (heh)
I can listen to any of these bands as individual favorite artists, but not altogether.
And yes, I'm in a stoner rock phase today.
Craig, James (IT)
2005-11-11, 03:01
Wow - power user!
Anything that works in the LastFM player should in theory work in the
Squeezebox player.
What response do you get back from LastFM in the log (with --d_plugins
enabled) when you try this?
BTW you shouldn't need to escape the spaces and characters in the prefs,
the plugin does this for you.
(Or if it doesn't it's a bug and needs fixing)
I see you're putting "+" characters in instead of spaces? Does that work
and/or do spaces not work?
James
PS. V1.0.2 posted last night;
Allows restart of the LastFM stream from the player when either an
update fails or track overrun is detected.
I've not tested this really but I had to finish it before I forgot what
I started...
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
mlmurray
2005-11-11, 11:27
Hi James,
I find LastFM is dominating my listening these days, so thanks so much. I've been trying to figure out how to enter multiple artists in the SlimServer interface to LastFM radio: I know that the structure is:
artist/artistname/similarartists - for example artist/Queens+of+the+Stone+Age/similar artists
but what if I want to listen to a station using multiple artists as my similar artists?
In the LastFM standalone player you can do this by separating artist names with commas, but is this true on the LastFM SlimServer plug-in as well? I can't seem to format it properly.
So far, I've tried:
artist/Queens+of+the+Stone+Age%2C+Orange+Goblin%2C+Fu+Man chu/similarartists
artist/Queens+of+the+Stone+Age%2COrange+Goblin%2CFu+Manch u/similarartists
artist/Queens+of+the+Stone+Age,Orange+Goblin,Fu+Manchu/similarartists
HELP! (heh)
I can listen to any of these bands as individual favorite artists, but not altogether.
And yes, I'm in a stoner rock phase today.
I didn't realize that multiple artists were possible. However, I have my similar artists (albeit single ones) lines set up as follows:
artist/Lemon Jelly
Apparently, spaces are okay (they seem to work fine for me) so you might want to try something like:
artist/Queens of the Stone Age,Orange Goblin,Fu Manchu
UPDATE:
Okay, neither "artist/[name of artist],[name of second artist]" nor artist/[name of artist],[name of second artist]/similarartists" worked for me. I couldn't make multiple artists work in the Last.FM player either. I'm not a subscriber - could that be the reason?
PS. V1.0.2 posted last night;
Allows restart of the LastFM stream from the player when either an
update fails or track overrun is detected.
I've not tested this really but I had to finish it before I forgot what
I started...
Since I was asking for some of those features I thought I'd better report back. I'm not sure whether its related to 1.0.2, or just a coincidence, but this evening I've had by far the longest uninterrupted run with LastFM yet - 6 hours and still running. How would I know if one of the new restart features was being invoked? I can't see anything obviously different in the logs.
Still, working well, so thanks.
Ceejay.
Nope you won't see anything different, you just won't get 'ignored' when trying to restart the stream from the plugin.
I haven't worked out how to display a warning in a sensible way, given that it might be a false alarm...
James
OK, here's an interesting one. As I write, LastFM is happily playing through Softsqueeze, has been for about 15 minutes. But Softsqueeze is showing "Press play to start LastFM", with the occasional "error sending update to lastfm" message popping up.
The trace, attached, shows me tryng to start the plugin... it didn't seem to start first time, so I pressed play again and the music started. But the plugin doesn't seem to realise this!
At around 11:24 in the trace I pressed play a couple more times, but no change. This is the point where I stopped and captured the log.
I've been pushing buttons like mad since then trying to make sense of it, and not entirely succeeding.
When displaying "now playing", I can press "play" and have something happen. Typically, first press causes the stream to stop, second press makes it start again (or so it seems - could be a user patience problem here).
But if I navigate off (this is all using the softsqueeze interface) to internet radio -> last fm -> "press play to start last fm", the "play" button is apparently completely ignored, the log is showing "connection failed" ... but the music is playing loud and clear.
I've tried wandering off to play some local FLACs and then back again, but I'm still getting the same behaviour. Very odd. Next step is presumeably to restart slimserver....
EDIT: instead of restarting slimserver, I first tried killing and restarting Softsqueeze. I now have normal behaviour back again. Still puzzled. Will try to reproduce.
Ceejay
...looks to me like you were one of those affected by the database rebuild this morning (between about 10am and 3pm GMT) ?
Suggested enhancement:
Can you add an option when first entering LastFM and "Press play to start LastFM" is displayed to either up arrow or right arrow to select the station to start LastFM on. As it is right now, it will always start using the last played station and there is no way to tell what that was and/or change it to start on a new station only.
Thanks for considering this.
...looks to me like you were one of those affected by the database rebuild this morning (between about 10am and 3pm GMT) ?
Very likely, yes. What threw me completely (still does) is that the stream was working fine (and could be restarted, although only from "Now Playing"), while the plugin interface and logs seemed to be insisting that the stream was stopped.
I know that the LastFM service itself is split into different parts, so I guess some of it (the actual streaming) was ok but the rest (the bit that tells us what its doing) wasn't, which would be pretty difficult for the plugin to handle.
Seems to be working fine this morning.
Ceejay.
Okay, neither "artist/[name of artist],[name of second artist]" nor artist/[name of artist],[name of second artist]/similarartists" worked for me. I couldn't make multiple artists work in the Last.FM player either. I'm not a subscriber - could that be the reason?
I'm a subscriber - doesn't seem to matter.
James - I will try to get you an output log once I wake up tomorrow. (it's 1 AM here)
For now, I started a multiple artists station using the OSX last.fm player, and then quit that app and hit 'Play Last.fm' in SlimServer which lets Slim 'intercept' it.
The station shows up in SlimServer as 'Custom Station for El_Payo' and works fine.
I'm actually listening to LastFM today! First time in ages...
So, multiple artists? The reponse from LastFM to an artist request with multiple bands is 'unknown artist' , presumably they're parsing the whole string as a single band.
In the website I notice that searching for multiple artists generates an 'artists' station followed by a lot of comma separated numbers! I have no idea what this means or how to get the same URL myself...the LastFM html is way over my head!
Trying 'artists' in the plugin just gets a 'failed' response.
Choosing the start station would be nice but it's not clear how to do it. I suspect you just have to send the change station command then start the stream. I will have a look in to this.
v1.0.4 is up now at http://www.jamescraig.co.uk/SlimServer
Mostly changes to the web page:
I added a text box in which you can enter any station as a one off (much faster than going to the settings page and back) followed by a link to the 'similar artists' station of the currently playing band.
I checked the LastFM player source code and as far as I can tell, for multiple artist radio they issue a search against their web page and parse the reponse for the station URL. This would complicate the plugin quite a bit so it's not going to happen right now!
James
James
Link to new version seems to be missing on the web page, getting a "not found" message from your ISP...
Ceejay
Craig, James (IT)
2005-11-14, 03:35
How strange.
I must have forgotten to upload it!
I cannot fix this until this evening, sorry...
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
Ok it's up now.
Hope it is not a disappointment after that wait!
James
For some reason I have been unable to get LastFM streaming to work. However, song posting works fine. I have both plug-ins installed. When I tell it to play LastFM via the web interface, it updates and says "Waiting for LastFM track details...", but the music never plays. I've tried it countless times.
Here's my debugging info:
2005-11-19 15:41:39.3035 LastFM: web page refresh: 35
2005-11-19 15:41:41.7341 LastFM: Connecting to: http://wsdev.audioscrobbler.com/radio/handshake.php?version=1.0.1&platform=slim&username=GoCubs&passwordmd5=3aa31b36d3f76a48a9b97d823d53cc9f
2005-11-19 15:41:42.2868 LastFM: session = 94869a753615a452ce05d29bbbfecc0c
2005-11-19 15:41:42.2869 LastFM: stream_url = http://streamer1.audioscrobbler.com/last.mp3?Session=94869a753615a452ce05d29bbbfecc0c
2005-11-19 15:41:42.2870 LastFM: subscriber = 0
2005-11-19 15:41:42.2871 LastFM: framehack = 0
2005-11-19 15:41:42.2872 LastFM: base_url = ws.audioscrobbler.com
2005-11-19 15:41:42.2873 LastFM: base_path = /radio
2005-11-19 15:41:42.2875 LastFM: Setting timer for 30 seconds for 00:04:20:05:a4:a2
2005-11-19 15:41:42.5940 Creating new PlayerStatus for Living Room (00:04:20:05:a4:a2)
2005-11-19 15:41:42.5943 *----------------------------
2005-11-19 15:41:42.5943 Open command [Living Room (00:04:20:05:a4:a2)]
2005-11-19 15:41:42.5944 *----------------------------
2005-11-19 15:41:42.5979 =======================================
2005-11-19 15:41:42.5980 Starting to time " - LastFM (from )"
2005-11-19 15:41:42.5981 ==Track.new
2005-11-19 15:41:42.5982 No length available, track will not be submitted
2005-11-19 15:41:42.5983 ======= showCurrentVariables() ========
2005-11-19 15:41:42.5984 Artist:
2005-11-19 15:41:42.5985 Track: LastFM
2005-11-19 15:41:42.5985 Album:
2005-11-19 15:41:42.5986 Original Filename: http://streamer1.audioscrobbler.com/last.mp3?Session=94869a753615a452ce05d29bbbfecc0c
2005-11-19 15:41:42.5987 No Countdown object yet
2005-11-19 15:41:42.5988 Current state of Track object: CANCEL
2005-11-19 15:41:42.5988 Is power on? : true
2005-11-19 15:41:42.5989 =======================================
2005-11-19 15:41:42.6315 LastFM: web page refresh: 35
2005-11-19 15:42:12.2910 LastFM: Connecting to http://ws.audioscrobbler.com/radio/np.php?session=94869a753615a452ce05d29bbbfecc0c
2005-11-19 15:42:13.6539 LastFM: streaming = false
2005-11-19 15:42:13.6556 LastFM: Setting timer for 60 seconds for 00:04:20:05:a4:a2
2005-11-19 15:42:17.7385 LastFM: web page refresh: 60
Any ideas?
Thanks
-Greg
I think my problem is fixed now. It's very odd. All I did was install the Windows LastFM player and play a stream. After that I tried playing again from SlimServer and it worked fine. Perhaps their player does some sort of initialization that is necessary to play future streams via SlimServer...
-Greg
This does seem to be the case.
I know of at least 3 cases where use of LastFM's player got mine to work. Although I have never used it!
The only thing I can think of that is causing the problem is that the plugin uses the LastFM development server. I am going to change this in the next version...
James
By accident, I discovered an unexpected, but pleasing feature. If I am playing Last.fm on my SB and click on a play radio station link on the last.fm website, it cues it on my SB (admittedly it goes into a stopped state and I have to press play to kickstart). Maybe well-known, but I was pleasantly surprised.
On another subject, I have noticed that there seems to be something amiss with the character encoding for accented characters, but in the SlimServer WebUI and on the SB display for last.FM. These characters are fine on my own music collection (all UTF-8 encoded). Any ideas for a fix?
Craig, James (IT)
2006-06-07, 04:13
> By accident, I discovered an unexpected, but pleasing feature. If I am
> playing Last.fm on my SB and click on a play radio station link on the
> last.fm website, it cues it on my SB (admittedly it goes into
> a stopped state and I have to press play to kickstart).
Are you sure you never installed the lastfm: protocol handler as
documented in the LastFM plugin files?
I would be very surprised if this worked without these changes.
> On another subject, I have noticed that there seems to be something
> amiss with the character encoding for accented characters, but in the
> SlimServer WebUI and on the SB display for last.FM. These characters
> are fine on my own music collection (all UTF-8 encoded). Any ideas for
> a fix?
I've also noticed this. I guess the responses from LastFM are either not
UTF8 at all or not correctly marked as such?
The windows command prompt doesn't support UTF8 so painful for me to see
what's happening there!
James
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
> By accident, I discovered an unexpected, but pleasing feature. If I am
> playing Last.fm on my SB and click on a play radio station link on the
> last.fm website, it cues it on my SB (admittedly it goes into
> a stopped state and I have to press play to kickstart).
Are you sure you never installed the lastfm: protocol handler as
documented in the LastFM plugin files?
I would be very surprised if this worked without these changes.
Quite sure. My server is running on a Linux box, for which there are no protocol handler instructions. Also the only last.fm reference in my firefox about.config is network.protocol-handler.warn-external.lastfm which is set to false. Finally, when I click on a radio link, the windows last.fm player (I'm browsing on a Windows notebook) still pops up as well as the station changing on my SB.
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.