feature request: jazzradio.com

Have a tour of xt7-player features and make
suggestions about features you would like to be added to it.

feature request: jazzradio.com

Postby symbianflo on Fri Sep 05, 2014 12:01 am

Could you add the channels jazzradio.com to XT7-player/radio , please?

http://www.jazzradio.com/

Hints.
amarok script : http://kde-apps.org/content/show.php/Ja ... ent=159543
or clementine.
https://github.com/clementine-player/Clementine

Thanks in advance.
symbianflo
 
Posts: 123
Joined: Mon May 25, 2009 12:50 pm

Re: feature request: jazzradio.com

Postby kokoko3k on Fri Sep 05, 2014 10:50 am

Hi symbianflo.
I think it is more convenient to just use the jazzradio streams as a plain playlist.
xt7 support multiple named playlists that can be loaded and saved in xpl,m3u and pls format.
Given that someone is updating the jazz.com stream lists, i think our best option is to just "steal" that list from the kdeapps script you linked.
For that, i did a simple script that reads the .js amarok script (main.js) and outputs the .m3u playlist.
ajs2m3u.sh
Code: Select all
#!/bin/bash
export IFS=$'\n'
mainjs="$1"
echo "#EXTM3U"
for line in $(grep "http" "$1") ; do
    title=$(echo $line |cut -d \" -f 2)
    rUrl=$(echo $line |cut -d \" -f 4)
    echo "#EXTINF:0,"$title 
    echo $rUrl
done


Usage:
Code: Select all
./ajs2m3u.sh /path/to/main.js > /path/to/jazzradio.com.m3u

or (depending on the way the source amarok script is coded)
Code: Select all
./ajs2m3u.sh /path/to/sender.js > /path/to/jazzradio.com.m3u

...then it is just a matter of dragging the resulting file into the xt7 playlist tab, give a name to it and save.

That's it, i tested the script vs other amarok radio scripts as well and it works.
--

-Edit:
I could add the import from amarok input list right into xt7 in a future release.
Attachments
jazz.m3u.zip
The resulting m3u file :)
(676 Bytes) Downloaded 96 times
ajs2m3u.sh.zip
Convert sender.js or main.js from an amarok script to m3u file format
(325 Bytes) Downloaded 74 times
User avatar
kokoko3k
Site Admin
 
Posts: 309
Joined: Wed Nov 05, 2008 12:29 pm

Re: feature request: jazzradio.com

Postby symbianflo on Sat Sep 06, 2014 1:18 pm

Import from amarok could be one solution... but you know i don't do amarok.... only player that I have installed is xt7, ( I've dumped even ROMP, for xt7), so you do how it's less laborious for you, maybe to import streams from amarok scripts would be more convenient for me...
Thx m8.

PS:
Imported jazz.m3u in xt7, and it's just perfect.
Attachments
schermata14.png
schermata14.png (146.57 KiB) Viewed 5428 times
symbianflo
 
Posts: 123
Joined: Mon May 25, 2009 12:50 pm


Return to Features and requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron

SourceForge.net Logo