Hope this is the proper forum section for this. I've been using Foobar for a few months now listening to last.fm.This morning I went to file... open last.fm.... open a custom station... typed in an artist... and got the following error message...

I download last.fm desktop application, and use it for now until someone update this component.Interesting thing I found is that if you enter another proxy in settings from U.S. or UK even if you from another country , you can listen radio for free without subscription. It would be great to make this possible in new last.fm plugin for foobar...

Thanks, the highlighting that you see above and below is mine. Whoa! Before I run the main.py that you are pointing me to, it looks like I have to first modify the config.py, file is that right? And for me being a newbie with the Python interface, I'm going to need some time or help to figure out how to properly do that.

If it involves greater complexity to set up a proxy in the Last.FM proxy then I am going to pass on this.

Thanks,Supersnake

In the meantime I individually ran each of the below sample URLs in the JRiver Media Center without any problem; for your interest I do have a Last.FM individual user subscription and have Media Center configured with my Last.FM user name and password.

For a detailed instruction with screenshots visit www.gabifrings.de/download.html

1. Introduction

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.

2. Basic usage

First, make sure you have a Python environment installed. You might have one already, but if not, go to http://www.python.org/ftp/python/ and download one suitable for your operating system. (If you're using a Windows operating system, you will need to get Windows Installer to install Python.)

Now, uncompress and unpack the archive file. In Unix-like operating systems, you can do this by running the command:tar xvzf lastfmproxy.tar.gz

Under Windows, WinZip or a similar compression tool should do fine.

Now go into the directory "lastfmproxy", and modify the file "config.py" and set our last.fm login and password. If you need (or want) to use an external proxy for web access, you must set also set useproxy to "True", and set the proxy host name and port.

The config file has a "bind_address" options, which tells the proxy which network interface to listen on. The default is to bind only to the localhost interface (127.0.0.1). If you want to be reach the proxy from other hosts or just use "0.0.0.0", which binds it to all interfaces available. Note that this is potentially less secure than binding only to the localhost IP, though.

Now you can start the proxy. This is done by simply running "main.py". It will then show the URL at which you must aim your player. Mark andcopy this URL to your clipboard or similar.

Finally, fire up your web browser of choice. Select "Open location" or something similar, and paste the URL there. You should see the proxy status page, vaguely resembling the last.fm player. Click "Start radio", and you're done! (You can also bookmark the URL in your browser for next time, to save you a little bit of work.)

By default, the server starts playing your last station (or your "musical neighbours" station, if it couldn't be determined for some reason).

Normally you will want to use the "changestation" script to change channels (see paragraph below). If not, you can use the web interface directly. The web interface is not perfect, but it's not too hard to do manually. To playanother station, you can simply modify the browser URL; Just append the "lastfm:" station address directly to your proxy URL.

You should get the picture. One thing, though; when you're editing URLs, "hip%20hop".) The easiest shortcut is to browse the last.fm site, and "Copy link location" when you see a station you like, and simply paste it at the end of the browser location in the proxy window.

Also, whenever you change stations, they will be added to the station history pulldown menu in the lower right, where they quickly and easily can be fetched again.

Note; You can also select a station directly when starting the player. Justopen an URL on the form "http://localhost:1881/globaltags/jazz.m3u" to startstreaming *and* select a station at the same time.

This is particularly useful if you don't have a browser at all, and just wantto listen to music. Under Linux, using mplayer, you can listen to any channel by starting the proxy, then launch: mplayer -playlist "http://localhost:1881/globaltags/metal.m3u"

3. Configuring the changestation.py script (Mozilla Firefox only)

Here's how to make the lastfm://station links work:

- In Firefox, open the location "about:config"- Right-click, select "New String"- As name, enter "network.protocol-handler.app.lastfm", "OK"- As value, enter the full path to the included "changestation.py" script (e.g. "C:\Program Files\lastfmproxy\changestation.py"), then "OK"

That should do the trick. Now, when you click on station link on the last.fm site, the proxy should catch on and start playing your selection in a few seconds.

4. Caveats

Nothing is perfect. Here are some things you should know:

- The author Vidar has only tested it under Linux. But user feedback seems to indicate success under various Windows versions and Mac OS X. Adaption to the new web service API for love and hate rating was done by Gabi on a Windows environment.

- It is probably full of bugs. Hopefully the most annoying of these can get stomped out eventually.

- The Record to Profile and Discovery Mode checkboxes lag. RTP will take a few seconds to toggle, while Discovery will not update until the next song change. This is a known issue, but I'm not sure about the right way to fix it (if at all). The checkboxes reflect what the server reports about its current status, and not what it will do in the future.

- Remote start of the proxy is in alpha stadium.

5. Troubleshooting

I can't promise much support, but feedback is always welcome.

You can drop me a message on last.fm (nick "last2gabelle" for Gabi or "vidarino" for Vidar).

Thanks, the highlighting that you see above and below is mine. Whoa! Before I run the main.py that you are pointing me to, it looks like I have to first modify the config.py, file is that right? And for me being a newbie with the Python interface, I'm going to need some time or help to figure out how to properly do that.

If it involves greater complexity to set up a proxy in the Last.FM proxy then I am going to pass on this.

Thanks,Supersnake

In the meantime I individually ran each of the below sample URLs in the JRiver Media Center without any problem; for your interest I do have a Last.FM individual user subscription and have Media Center configured with my Last.FM user name and password.

For a detailed instruction with screenshots visit www.gabifrings.de/download.html

1. Introduction

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.

2. Basic usage

First, make sure you have a Python environment installed. You might have one already, but if not, go to http://www.python.org/ftp/python/ and download one suitable for your operating system. (If you're using a Windows operating system, you will need to get Windows Installer to install Python.)

Now, uncompress and unpack the archive file. In Unix-like operating systems, you can do this by running the command:tar xvzf lastfmproxy.tar.gz

Under Windows, WinZip or a similar compression tool should do fine.

Now go into the directory "lastfmproxy", and modify the file "config.py" and set our last.fm login and password. If you need (or want) to use an external proxy for web access, you must set also set useproxy to "True", and set the proxy host name and port.

The config file has a "bind_address" options, which tells the proxy which network interface to listen on. The default is to bind only to the localhost interface (127.0.0.1). If you want to be reach the proxy from other hosts or just use "0.0.0.0", which binds it to all interfaces available. Note that this is potentially less secure than binding only to the localhost IP, though.

Now you can start the proxy. This is done by simply running "main.py". It will then show the URL at which you must aim your player. Mark andcopy this URL to your clipboard or similar.

Finally, fire up your web browser of choice. Select "Open location" or something similar, and paste the URL there. You should see the proxy status page, vaguely resembling the last.fm player. Click "Start radio", and you're done! (You can also bookmark the URL in your browser for next time, to save you a little bit of work.)

By default, the server starts playing your last station (or your "musical neighbours" station, if it couldn't be determined for some reason).

Normally you will want to use the "changestation" script to change channels (see paragraph below). If not, you can use the web interface directly. The web interface is not perfect, but it's not too hard to do manually. To playanother station, you can simply modify the browser URL; Just append the "lastfm:" station address directly to your proxy URL.

You should get the picture. One thing, though; when you're editing URLs, "hip%20hop".) The easiest shortcut is to browse the last.fm site, and "Copy link location" when you see a station you like, and simply paste it at the end of the browser location in the proxy window.

Also, whenever you change stations, they will be added to the station history pulldown menu in the lower right, where they quickly and easily can be fetched again.

Note; You can also select a station directly when starting the player. Justopen an URL on the form "http://localhost:1881/globaltags/jazz.m3u" to startstreaming *and* select a station at the same time.

This is particularly useful if you don't have a browser at all, and just wantto listen to music. Under Linux, using mplayer, you can listen to any channel by starting the proxy, then launch: mplayer -playlist "http://localhost:1881/globaltags/metal.m3u"

3. Configuring the changestation.py script (Mozilla Firefox only)

Here's how to make the lastfm://station links work:

- In Firefox, open the location "about:config"- Right-click, select "New String"- As name, enter "network.protocol-handler.app.lastfm", "OK"- As value, enter the full path to the included "changestation.py" script (e.g. "C:\Program Files\lastfmproxy\changestation.py"), then "OK"

That should do the trick. Now, when you click on station link on the last.fm site, the proxy should catch on and start playing your selection in a few seconds.

4. Caveats

Nothing is perfect. Here are some things you should know:

- The author Vidar has only tested it under Linux. But user feedback seems to indicate success under various Windows versions and Mac OS X. Adaption to the new web service API for love and hate rating was done by Gabi on a Windows environment.

- It is probably full of bugs. Hopefully the most annoying of these can get stomped out eventually.

- The Record to Profile and Discovery Mode checkboxes lag. RTP will take a few seconds to toggle, while Discovery will not update until the next song change. This is a known issue, but I'm not sure about the right way to fix it (if at all). The checkboxes reflect what the server reports about its current status, and not what it will do in the future.

- Remote start of the proxy is in alpha stadium.

5. Troubleshooting

I can't promise much support, but feedback is always welcome.

You can drop me a message on last.fm (nick "last2gabelle" for Gabi or "vidarino" for Vidar).

just folow instruction carefully, set bind_address to:127.0.0.1 , enter your last.fm api and secret, password and username in config.py that's all. Then run main.py and enter adress in foobar -add location: http://localhost:1881/lastfm.mp3 , it should work. let me know if you find out something new about this...

Thanks. I obtained a Last.fm API account and configured the config.py file; main.py ran it and told me to use http://localhost:1881/ Now for the change station challenge...

Try this, it worked for me. 1. Plug http://localhost:1881/lastfm.mp3 into Add location, then see if it displays and plays. If it does then2. Add this second station http://mp1.somafm.com:880. 3. I saved the two listed radio stations to a playlist and named it "Two", it became Two.fpl4. I can now launch Two.fpl anytime I want and change from one of the stations to the other.The Python console also displayed that I changed stations.

Notes:- For some reason I am unable to add a third station to a playlist.- For some reason Foobar will not let me play a valid URL but JRiver Media Player will, e.g. http://localhost:1881/lastfm://artist/Madonna/similarartists.- I read somewhere that it's best to run lastfmproxy with a version 2 Python and avoid any of the version 3 Pythons because lastfmproxy is such an old app, which is why I was using python-2.7.3.amd64.msi on my Windows7 (64) machine. Was that a factor? Who knows..- It is worth your time to see if another client will play your URL (Winamp, JRiver Media Player, etc) before trying to play it in Foobar.

Thanks. I obtained a Last.fm API account and configured the config.py file; main.py ran it and told me to use http://localhost:1881/ Now for the change station challenge...

Try this, it worked for me. 1. Plug http://localhost:1881/lastfm.mp3 into Add location, then see if it displays and plays. If it does then2. Add this second station http://mp1.somafm.com:880. 3. I saved the two listed radio stations to a playlist and named it "Two", it became Two.fpl4. I can now launch Two.fpl anytime I want and change from one of the stations to the other.The Python console also displayed that I changed stations.

Notes:- For some reason I am unable to add a third station to a playlist.- For some reason Foobar will not let me play a valid URL but JRiver Media Player will, e.g. http://localhost:1881/lastfm://artist/Madonna/similarartists.- I read somewhere that it's best to run lastfmproxy with a version 2 Python and avoid any of the version 3 Pythons because lastfmproxy is such an old app, which is why I was using python-2.7.3.amd64.msi on my Windows7 (64) machine. Was that a factor? Who knows..- It is worth your time to see if another client will play your URL (Winamp, JRiver Media Player, etc) before trying to play it in Foobar.

Taking a break..Cheers.

Thank you, everything worked until a few days ago. I think it's no longer possible to listen last.fm... it depends on country you are from. Listen is possible only from: United States, United Kingdom, Germany, Canada, Australia, New Zealand, Ireland and Brazil. Last.fm no longer provide radio streaming to other countries. Because of this i quit last.fm and switched to jango.com

Thank you, everything worked until a few days ago. I think it's no longer possible to listen last.fm... it depends on country you are from. Listen is possible only from: United States, United Kingdom, Germany, Canada, Australia, New Zealand, Ireland and Brazil. Last.fm no longer provide radio streaming to other countries. Because of this i quit last.fm and switched to jango.com

Just read that Last.fm announcement that you referred me to. Am sorry to read that. I guess Last.fm is restructuring itself to keep up with the lowering economy. Since my USA Last.fm subscription price is only $3.00 (USD) per month I will remain with it.

I'll take a look at the Jango.com that you switched to, am always interested in good streaming sites.Perhaps you might like to visit these two, see if you like them.

1. http://www.1.fm/ 1.FM has a medium size amount of streaming categories to choose from but their fidelity is very good for an .mp3 compressed site.

EDIT:Just looked over Jango.com and I definitely prefer it to the two I listed. It reminds me of Last.fm in its capability to recommend similar artists/compositions and it creates radio stations based on the user's tastes, just like Last.fm.

On their new beta site they integrate Spotify besides YouTube as a content provider, so your Last.fm personal radio stations (library, mix and recommendations) play in the Spotify desktop client now as well as similar artists and global tags radios. Furthermore on-demand playback of tracks listed on any Last.fm page was already implemented on Jan 2014:

On their new beta site they integrate Spotify besides YouTube as a content provider, so your Last.fm personal radio stations (library, mix and recommendations) play in the Spotify desktop client now as well as similar artists and global tags radios. Furthermore on-demand playback of tracks listed on any Last.fm page was already implemented on Jan 2014:

Thank you for the details replyI just know how to play youtube on Foobar but I still hope that one day we can listen Lastfm radio on Foobar directly

...Because in my Last.fm webpage, I still can listen to many radio station (on my browser)My hobby is choosing a station and let it play during working.

I was told you that you can play last.fm radio station's and how to do that. I was leave you a link, and detailed instruction how to set everything..Script is named ''Youtube Radio'', but it uses last.fm web page, and works identical as last.fm web radio.So basicaly this is a ''last.fm radio'' but with different name - ''Youtube radio''.Script doesn't connect directly on ''last.fm web radio'', it uses last.fm to collect info about similar artist and tracks, and then play that tracks in foobar..This is a same princip as last.fm use on their web page..