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: foo_lastfm_radio (Read 346817 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.


foo_lastfm_radio

Reply #352
Regarding the future of this component
The component is still using the old Last.fm Radio API, which was due to be discontinued over half a year ago, and is therefore running on borrowed time. When the new radio API was released I went some way to updating, but hit some problems and then didn't have the time.

However the new radio API requires users to be subscribers in order to listen, and as I expect the continuing popularity of foo_lastfm_radio stems from the fact that you don't need to subscribe, it is unlikely that I'll update to the new API any time soon. This means that if and when the old radio API is deactivated, it will be RIP foo_lastfm_radio.

Just so you know...

Maybe we could do 2 versions. One with the new api and one with the old one? I am willing to help in developing. I dont think it would be that much work. And i would love to add features
Let me know what you think

 

foo_lastfm_radio

Reply #353
I'm now getting: Error retrieving Last.fm radio playlist: An unknown error occurred.

Is the API disabled or something?


foo_lastfm_radio

Reply #355
Quote
can you open lastfm:// links from a browser?
I can open lastfm:// links in firefox, but they don't open in windows explorer or start>run (should they? I can open http:// links in them, they open in firefox as they should), but I found that this works:
Code: [Select]
WshShell.run('"C:\\Program Files\\foobar2000\\foobar2000.exe" "lastfm://artist/Merzbow"');
Here is (a shortened version of) the code I'm using:
Code: [Select]
function menu()
{
var basemenu = window.CreatePopupMenu();
var menuindex = 1;
var ret;
var i = 1;
   
basemenu.AppendMenuItem(MF_STRING, menuindex++, "Merzbow");

mainmenuOn = true;
menuon = true;
ret = basemenu.TrackPopupMenu(3*btw, tpad+bth-1);
mainmenuOn = false;
openmenu = true;

if (ret == 0)
{
return;
}

switch (ret)
{
case i++:
WshShell.run("lastfm://artist/Merzbow");
break;
}
basemenu.Dispose();
}

foo_lastfm_radio

Reply #356
The problem with that command is that if lastfm:// is not associated, i get a script error when doing the WshShell.Run

foo_lastfm_radio

Reply #357
'lastfm' is checked under Preferences>File Types, is there anything else I need to do as well? I rebooted to make sure, but it hasn't made a difference. I don't have the last.fm client installed.

foo_lastfm_radio

Reply #358
is there anything else I need to do as well?


nope. that should work?? maybe create a "lastfm://" shortcut on your desktop and then right click it, open with, select foobar and make sure the check box to always use application is ticked.

also you can put the WshShell.Run inside a try statement to prevent your script terminating

Code: [Select]
try {
    WshShell.Run....
} catch(e) {
    fb.trace("Unable to launch Last.fm radio");
}


foo_lastfm_radio

Reply #359
Unfortunately that doesn't work, Windows assumes it's an internet link and doesn't give me an Open With option, it just tries to open it in IE, which can't handle them apparently. I've had a look in the registry, it doesn't seem to match what this says, so I might try changing the registry manually and see what happens.

foo_lastfm_radio

Reply #360
I don't know why but it keeps skipping songs. On song change or when i skip a song manually, it will skip 2 or 3 songs at once...
Is there any way to fix it or even know exactly what is going on ??

foo_lastfm_radio

Reply #361
if you're using wave seekbar, that might cause it (not sure if it's been fixed yet - check the thread).

foo_lastfm_radio

Reply #362
I changed my registry from
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\lastfm]
@="foobar2000.url.lastfm"
"URL Protocol"=""

to
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\lastfm]
@="foobar2000.url.lastfm"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\lastfm\shell]

[HKEY_CLASSES_ROOT\lastfm\shell\open]

[HKEY_CLASSES_ROOT\lastfm\shell\open\command]
@="\"C:\\Program Files\\foobar2000\\foobar2000.exe\" \"%1\""

And now it works fine.

foo_lastfm_radio

Reply #363
No need to hack the registry.

You can assign the lastfm:// protocol to foobar2000 from the "Shell Integration" preferences page. In Vista/7 press the big "set program associations..." button at the top (the protocols are at the bottom of the resulting window), in XP you use the "File Types" sub-page (again, check at the bottom for lastfm).

foo_lastfm_radio

Reply #364
Nope, i'm not using wave seekbar... :S

foo_lastfm_radio

Reply #365
Seems like .flac files aren't reported to last.fm
mp3 works fine

Windows 7/x64, foobar2000 v1.0, 0.57 version of foo_lastfm

Thanks

foo_lastfm_radio

Reply #366
holy wrong thread batman. this component streams mp3s from last.fm into foobar.

foo_lastfm_radio

Reply #367
Uhm I've tried the reg hack but it seems I still keep getting this error when trying to open a station

this is what's popped out.

Gone (410)


EDIT

Sorry was being an idiot and using an outdated version

foo_lastfm_radio

Reply #368
Great plug-in but I have a problem(request actually).

I want to be abile to use very long URL's while creating a "custom" station. I used the "Filter recommendations" feature from the playground and it generated a link for me as follows:
Quote
lastfm://play/artists/1187,1000266,1000877,1001278,1001286,1001727,1001898,1002496,1058402,6912846

and the dialog allowed only up to
Quote
lastfm://play/artists/1187,1000266,100087


I have managed to correct this by editing the "index.dat" file in the playlists folder but it's kind of annoying and I do not think it is nothing more than removing a length restriction from a textbox. Am I wrong?

foo_lastfm_radio

Reply #369
I added foo_lastfm_radio to DarkOne16build20100106's foobar skin, using Foobar2000 V1.0.
Everything is working fine with foo_lastfm_radio, but the problem aprear when  i try to listen to any music from my computer. Even if o choose add file/add folder button, if i drag&drop the file in foobar, or double click on the track, foobar doesn't want to load the songs, instead is keep on looking in lasfm database.
Anyone have this problem?
Thank you.

foo_lastfm_radio

Reply #370
Released v0.5.7d with the text length limit in the custom station dialog lifted.

yulyo!: The Last.fm Radio playlists have locks which prevent non-Last.fm tracks from being added. I expect you need to create or select another playlist before adding your own music.

foo_lastfm_radio

Reply #371
@yulyo!
You should switch from your last.fm playlist to the default or any other playlist before adding files.
(Its the only case i could imagine this behaviour)

EDIT: Oops, too late...

foo_lastfm_radio

Reply #372
Ok, i didn't knew that.
Thank you very much, nausea & tedgo

foo_lastfm_radio

Reply #373
Two things.

First, and foremost thank you much, nausea, for your great work on developing, and maintaining this plugin.


I've updated to the latest version, and I noticed that the default Last.FM picture (default) reverts back to the default no matter how many times I change it. So, is there a way to fix this?

What I'm talking about is:



No matter what I change it to, it always reverts back to the default.


I liked being able to have my choice as to default pictures. Somehow that got overlooked, and it's now broken. Minor bug, sure, but I miss having it.


Thanks again.

- -
Okay,
Father Luke

foo_lastfm_radio

Reply #374
Can I ask for custom proxy setting for the plugin?