Help - Search - Members - Calendar
Full Version: Last.fm radio streams
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
joen
Hello smile.gif

I've got a question/request for all you plugin creators. Please excuse me if it has been asked before, I didn't find anything about it in the search.

I was wondering if it would be possible to create a plugin that would enable foobar to play last.fm radio streams.

like lastfm://user/username/recommended
and lastfm://user/username/neighbours

To me a component like this would greatly enhance my foobar experience. For instance I now have buttons in my config which enable me to start my last.fm recommendations and neighbours radio streams in the last.fm client software, but I would much prefer to only have to use foobar for this.

My guess is that the radio streams are just your average audio streams, and foobar just doesn't know what to do with the lastfm:// protocol.

Is there anyway to do this or are changes in foobar itself necessary to achieve this?

Thanks wink.gif
Kirya
You can use LastFMProxy:
QUOTE
LastFMProxy is a proxy server for the last.fm radio streams. It allows you to use your regular old audio player to listen to the last.fm streams. It does this by acting as a player itself, connecting to the server on your behalf, but instead of playing the stream, it simply relays it to whichever other application connecting to it.
but standalone plugin will be a great stuff..
joen
QUOTE(Kirya @ Sep 13 2007, 18:34) *

You can use LastFMProxy:
QUOTE
LastFMProxy is a proxy server for the last.fm radio streams. It allows you to use your regular old audio player to listen to the last.fm streams. It does this by acting as a player itself, connecting to the server on your behalf, but instead of playing the stream, it simply relays it to whichever other application connecting to it.
but standalone plugin will be a great stuff..


Cheers, I didn't know about that one. It works really well smile.gif I love the little web interface that comes with it. Now if only foobar could display html dry.gif
Thanks for the link smile.gif
carmenm
Wow, LastFMProxy is great. I modified it so that it also download the cover so that you can show it in an album art panel. The only problem now is that skip doesnt respond very quickly. Now i ll have to do a special skin when playing lastfm radio wink.gif

Thanks a lot
joen
QUOTE(carmenm @ Sep 14 2007, 15:45) *

Wow, LastFMProxy is great. I modified it so that it also download the cover so that you can show it in an album art panel. The only problem now is that skip doesnt respond very quickly. Now i ll have to do a special skin when playing lastfm radio wink.gif

Thanks a lot


Could you explain how to make it download the album art? That would be great smile.gif
FofR
Im finding that it's a bit slow getting the information, any one else finding this?
carmenm
Same as you FofR here, skip doesnt even work for me, yet next does the trick but sometimes the infos goes nuts as the album art.

Here is my version which download the album art in the data folder of lastfmproxy. It creates either a folder.jpg or a folder.gif but there is always just one of them. The only problem right now is that it does it really often as there is no really a change track function.

LastFMProxyCarmenmod
FofR
In your mod it would be nice to set as a variable the location of the image, rather than have it set to "C:/Program Files/lastfmproxy/data/folder.jpg"
carmenm
Here you are

lastfmproxycarmenmmod
joen
QUOTE(carmenm @ Sep 17 2007, 21:04) *


Great, Thanks smile.gif
FofR
Here's a batch script I have associated with a global keyboard shortcut, starting the proxy and loading the playlist:

start main.py
@ping 127.0.0.1 -n 2 -w 1000 > nul
@ping 127.0.0.1 -n 10 -w 1000> nul
lastfm.m3u

The ping waits 10 seconds for proxy to setup before loading the m3u file, which has been saved in the same directory as the proxy.
Having some toubles getting images to work though.

Or you can try this:
http://www.last.fm/group/LastFMProxy/journal/2005/08/27/8981

Or simply to just hide the command line window:
QUOTE
The easiest way to do this on XP is to right-click on the main.py file in your LastFMProxy folder, select Open With and then Choose Program. When the dialog comes up, Browse to your Python directory and select pythonw.exe. Once back at the Open With dialog, make sure Always use the selected program... is enabled.


Or non-permanently:

start C:\python25\pythonw.exe main.py
@ping 127.0.0.1 -n 2 -w 1000 > nul
@ping 127.0.0.1 -n 10 -w 1000> nul
lastfm.m3u

(risk of having multiple instances, not sure how to kill off previous processes from the command line yet)
EDIT: taskkill /F /IM pythonw.exe (put it at the start)
carmenm
what do you mean by troubles?
t3chn0b0y
I created batch files that i associated with shortcuts to love/skip/
using a windows version of wget..

wget http://localhost:1881/skip
wget http://localhost:1881/ban
wget http://localhost:1881/love

and a few to let it report my plays or not using the following

wget http://localhost:1881/nortp
wget http://localhost:1881/rtp
martynonline
hi carmenm, do you have a version that works with 1.3b of lastfmproxy?

or could you tell us how to do the album art trick?

thanks in advance smile.gif
Superunknown
A complete component doing that in Foobar would be awesome.
Sounds Blast
QUOTE(Superunknown @ Mar 12 2008, 14:03) *

A complete component doing that in Foobar would be awesome.

Yeah, this would be great. Any word on anyone working on such a project, or if it's even possible?
Onkel Andy
QUOTE(ActiveThoughts @ Aug 14 2008, 02:13) *

QUOTE(Superunknown @ Mar 12 2008, 14:03) *

A complete component doing that in Foobar would be awesome.

Yeah, this would be great. Any word on anyone working on such a project, or if it's even possible?


Take a look here.. awesome:
http://www.hydrogenaudio.org/forums/index....showtopic=65586

Superunknown
QUOTE(Onkel Andy @ Sep 2 2008, 14:46) *

QUOTE(ActiveThoughts @ Aug 14 2008, 02:13) *

QUOTE(Superunknown @ Mar 12 2008, 14:03) *

A complete component doing that in Foobar would be awesome.

Yeah, this would be great. Any word on anyone working on such a project, or if it's even possible?


Take a look here.. awesome:
http://www.hydrogenaudio.org/forums/index....showtopic=65586

Thanks for the link but it seems to work only with the latest foobar version.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.