Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Last.fm radio streams (Read 10117 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Last.fm radio streams

Hello

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 

Last.fm radio streams

Reply #1
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..
Thinking Outside The Box

Last.fm radio streams

Reply #2
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  I love the little web interface that comes with it. Now if only foobar could display html 
Thanks for the link

Last.fm radio streams

Reply #3
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

Thanks a lot

Last.fm radio streams

Reply #4
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

Thanks a lot


Could you explain how to make it download the album art? That would be great


Last.fm radio streams

Reply #6
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




Last.fm radio streams

Reply #10
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)

Last.fm radio streams

Reply #11
what do you mean by troubles?


Last.fm radio streams

Reply #13
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 

Last.fm radio streams

Reply #14
A complete component doing that in Foobar would be awesome.



Last.fm radio streams

Reply #17


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.