Cool Streams Reloaded (CSR v1.2.x)
Amarok 2.x Scripts
Score 57%
Description:

Edited Cool Streams and added extra stations to cover more genres and tastes. Plan is to add more stations with time and to sort them by genre (your help with genres is greatly appreciated). All extra added stations are last.fm compatible (songs are scrobbled properly).

Let me know if you have any ideas or stations to add.

Install via Script manager:
In Amarok select Tools > Script manager > Get more scripts > Search phrase: Cool Streams > select script and click Install > restart Amarok

To install from file:
In Amarok select Tools > Script manager > Install script > browse to cool_streams_reloaded.amarokscript.tar.gz > Open > OK > OK and restart Amarok.
Last changelog:

7 years ago

v1.2.4:
Fixed crashing bug (thanks to Aiwendil!)
Hope everything works fine now

v1.2.3:
Added 28 more streams from 1club.fm (Blues, Classical, Hip-Hop, Electro, Oldies, Rock, Punk, Metal) so there's some for everyone;
Merged few genres into one;

v1.2.2:
Added 3 streams from http://www.psychedelik.com/ (Thanks jason1);
Few more icon changes;

v1.2.1:
Added custom icons for the script;
Some more minor code changes;

v1.2:
Added 8 CBC stations (shamesly stolen from CBC Radio script, hope the author doesn't mind) All of them announce artist and song title so its last.fm compatible;
Some minor genre sorting changes;

v1.1:
Introduced genre sorting (still in progress);

v1.0:
Added few extra stations to original Cool Streams script

karlheinzweber

7 years ago

Hi Aiwendil,

yes it worked. Thanks alot. Nevertheless I would like to use some kind of this script, because the preinstalled Cool Streams is not as powerful as I prefer. (Thinking of adding a new stream...)

So long

Report

Aiwendil

7 years ago

Okay...you made me curious. So I downloaded the script and installed it here also. And yes, in fact it crashes Amarok at startup for me also. So looked into this a bit and came up with a solution for it:

First install the script again from withint Amarok with the script manager. Then quit amarok. To prevent Amarok from crashing when starting it again open the script file "~/.kde4/share/apps/amarok/scripts/cool_streams_reloaded/main.js" in a text editor. Before line 41 "Importer.loadQtBinding("qt.gui");" include another line "Importer.loadQtBinding("qt.core");" so that the script looks like:
Quote:
...
# http://de.wikipedia.org/wiki/Hochschulradio
# http://www.antenne.de/antenne/radio/frequenzen/stream.php
*/

Importer.loadQtBinding("qt.core");
Importer.loadQtBinding("qt.gui");

script = new RadioDE();
script.populate.connect( onPopulating );
...


Afterwards Amarok will start up, load the script and it seems to work fine for me.

Hope that helps.

Report

Aiwendil

7 years ago

What a surprise...of course I messed it up, the quote is wrong. It's from the german radio streams script I looked at as it worked.

The Cool Streams Reloaded script should look like this:

Quote:
...
# Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
##########################################################################*/

Importer.loadQtBinding( "qt.core" );
Importer.loadQtBinding( "qt.gui" ); //for QPixmap

function Station( name, url, description )
{
this.name = name;
...

Report

karlheinzweber

7 years ago

Sorry, seems as if I'm helpless, I can't read your quotes complete.

Perhaps you can send me a PM with the code. By the way, line 41 in my scriptfile is a radio station. line 37 is "categorie = new Object". I guess I have to start editing before this.

Report

Aiwendil

7 years ago

Sorry...the confusions is because of me. I quoted the wrong file at first...and also said the wrong line number. Correct line number would be 28...BUT it's not needed anymore. Just download the script again...refreshFSN (the author) included that fix already. So the new version 1.2.4 should work for you.

Report

karlheinzweber

7 years ago

:D yes, works.

Thanks alot, thats support on demand. And now, let's browse streams.

Greets

Report

karlheinzweber

7 years ago

Sorry, seems as if I'm helpless, I can't read your quotes complete.

Perhaps you can send me a PM with the code. By the way, line 41 in my scriptfile is a radio station. line 37 is "categorie = new Object". I guess I have to start editing before this.

Report

krnekit

7 years ago

I found that this script causes Amarok to crash. See https://bugs.kde.org/show_bug.cgi?id=245990 for more details

Report

Aiwendil

7 years ago

Crashes Amarok 2.3.2 for me also. But to present a solution and follow my narcissistic tendencies and quoting myself form a knowledge base question according to this:

Quote:
First install the script again from withint Amarok with the script manager. Then quit amarok. To prevent Amarok from crashing when starting it again open the script file "~/.kde4/share/apps/amarok/scripts/cool_streams_reloaded/main.js" in a text editor. Before line 41 "Importer.loadQtBinding("qt.gui");" include another line "Importer.loadQtBinding("qt.core");" so that the script looks like:

...
# http://de.wikipedia.org/wiki/Hochschulradio
# http://www.antenne.de/antenne/radio/frequenzen/stream.php
*/

Importer.loadQtBinding("qt.core");
Importer.loadQtBinding("qt.gui");

script = new RadioDE();
script.populate.connect( onPopulating );
...

Afterwards Amarok will start up, load the script and it seems to work fine for me.

Hope that helps.

Report

Aiwendil

7 years ago

So correcting it here also as I of course messed up...no real surprise. Pasted the code of the script I looked at that worked...not the code of Cool Streams Reloaded.

Correct quote:
Quote:
...
# Free Software Foundation, Inc., #
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #
##########################################################################*/

Importer.loadQtBinding( "qt.core" );
Importer.loadQtBinding( "qt.gui" ); //for QPixmap

function Station( name, url, description )
{
this.name = name;
...

Report

C

refreshFSN

7 years ago

Ok, I updated the script with your sollution. Hope everything works fine now.
Feel free to let me know if you have any issues.

Thanks for your help Aiwendil ;)

Report

krnekit

7 years ago

Found incorrect genre for the stream
[Studio 54] 1club.fm - Studio 54
i.e. station name instead of genre. I think it must be "Disco".

Nevertheless, script is good. I think it's best replacement for ShoutCast.

Report

jason1

7 years ago

This looks bit like spam :) but here we go.. streams from this site would be great addition to psy* genre:
http://www.psychedelik.com/


Report

C

refreshFSN

7 years ago

Added and I'll upload new version in a minute.
PS Even though that stations struggle with artist and song title so last.fm wont scrobble it properly. Thanks for your suggestion.

Report

dbneeley

7 years ago

Since the Classical streams are so limited, perhaps you can add the WRR Radio stream at http://www.wrr101.com.

WRR is a classical station owned by the City of Dallas, Texas--although it is commercial in that it does have ads. Otherwise, the programming is excellent.

Report

C

refreshFSN

7 years ago

ok, i'll check it out. thanks!

Report

C

refreshFSN

7 years ago

ok, I'm stuck on genres so I need your help. what would you think is the best way to sort the genres? i was thinking on placing one station under more genres if station is declared as multiple-genre stream but im still not sure. keep in mind that the system should be effective when the number of stations becomes bigger.

oh, and feel free to leave a stream or two in comments :)

Report

7 years ago

v1.2.4:
Fixed crashing bug (thanks to Aiwendil!)
Hope everything works fine now

v1.2.3:
Added 28 more streams from 1club.fm (Blues, Classical, Hip-Hop, Electro, Oldies, Rock, Punk, Metal) so there's some for everyone;
Merged few genres into one;

v1.2.2:
Added 3 streams from http://www.psychedelik.com/ (Thanks jason1);
Few more icon changes;

v1.2.1:
Added custom icons for the script;
Some more minor code changes;

v1.2:
Added 8 CBC stations (shamesly stolen from CBC Radio script, hope the author doesn't mind) All of them announce artist and song title so its last.fm compatible;
Some minor genre sorting changes;

v1.1:
Introduced genre sorting (still in progress);

v1.0:
Added few extra stations to original Cool Streams script

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.2.4
updated Oct 09 2010
added Feb 08 2010
downloads today
0
page views today 3