SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-10-23 21:24:44

Athos
#! CrunchBanger
Registered: 2011-09-28
Posts: 108

SomaFM playlist

Hi all!!

I've done a .pls wich contains all SomaFM radios big_smile (mp3 #128kbps)
(Only the main server for each radio, tough)

I tought It could be useful to someone smile

[playlist]
numberofentries=21

File1=http://streamer-dtc-aa03.somafm.com:80/stream/1018
Title1=Groove Salad
Length1=-1

File2=http://streamer-dtc-aa04.somafm.com:80/stream/1021
Title2=Secret Agent 
Length2=-1

File3=http://voxsc1.somafm.com:8850
Title3=Suburbs of Goa
Length3=-1

File4=http://voxsc1.somafm.com:8600
Title4=Sonic Universe
Length4=-1

File5=http://streamer-dtc-aa01.somafm.com:80/stream/1032
Title5=Drone Zone
Length5=-1

File6=http://voxsc1.somafm.com:8300
Title6=Doomed Dark
Length6=-1

File7=http://voxsc1.somafm.com:8384
Title7=Beat Blender
Length7=-1

File8=http://205.188.215.230:8012
Title8=Tag's Trip
Length8-1

File9=http://mp1.somafm.com:8080
Title9=480 Minutes
Length9=-1

File10=http://voxsc1.somafm.com:7000
Title10=Boot Liquor
Length10=-1

File11=http://voxsc1.somafm.com:8040
Title11=Black Rock FM
Length11=-1

File12=http://voxsc1.somafm.com:8062
Title12=Cliqhop idm
Length12=-1

File13=http://voxsc1.somafm.com:8700
Title13=Covers
Length13=-1

File14=http://voxsc1.somafm.com:8900
Title14=Digitalis
Length14=-1

File15=http://voxsc1.somafm.com:8500
Title15=Illinois Street Lounge
Length15=-1

File16=http://voxsc1.somafm.com:8090
Title16=Indie Pop Rocks!
Length16=-1

File17=http://streamer-dtc-aa04.somafm.com:80/stream/1073
Title17=Lush 
Length17=-1

File18=http://mp1.somafm.com:2020
Title18=Mission Control
Length18=-1

File19=http://voxsc1.somafm.com:2200
Title19=PopTron
Length19=-1

File20=http://207.200.96.231:8012
Title20=Space Station
Length20=-1

File21=http://voxsc1.somafm.com:8880
Title21=Underground
Length21=-1

Version=2

Just save it as SomaFM.pls (or something like that) and load in mocp, or whatever mediaprogram you use...

If any mod thinks this should go to the scripts forum, do it smile

Offline

Help fund CrunchBang, donate to the project!

#2 2012-01-02 14:00:12

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: SomaFM playlist

Athos wrote:

Hi all!!

I've done a .pls wich contains all SomaFM radios big_smile (mp3 #128kbps)
(Only the main server for each radio, tough)

I tought It could be useful to someone smile
...
Just save it as SomaFM.pls (or something like that) and load in mocp, or whatever mediaprogram you use...

How do I make such a list with music of my own taste? (jazz, world music eg)
I've used mocp for quite some time but still don't know how to get streaming radio working.
I copied and tried Athos' file and that works smile, but I just don't know where to begin since the contents of the file are cryptic to me.


#!+mocp=music in my ears

Offline

#3 2012-01-02 14:09:33

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: SomaFM playlist

the file is actually quite simple in syntax. it is just a list with links to streams. the streams can be found through the Soma FM website. for example, here is the page listing the streams for the 'Secret Agent' channel: http://somafm.com/secretagent/directstreamlinks.html
so you could just see whether Soma FM offers your choice in music, follow their link to the direct streams page, and add/replace those links in the .pls file.

Offline

#4 2012-01-02 14:34:58

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,106

Re: SomaFM playlist

I just tried this .pls in MoCP, and I only see the first 8 links.  Something wrong?


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#5 2012-01-02 14:45:05

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: SomaFM playlist

rhowaldt wrote:

the file is actually quite simple in syntax. it is just a list with links to streams. the streams can be found through the Soma FM website. for example, here is the page listing the streams for the 'Secret Agent' channel: http://somafm.com/secretagent/directstreamlinks.html
so you could just see whether Soma FM offers your choice in music, follow their link to the direct streams page, and add/replace those links in the .pls file.

On Soma I don't see any jazz, so I tried another address.
I put that in the file but mocp complains about "format" not being correct.

[playlist]
numberofentries=1

File1=http://www.jazz24.org/

Version=2

#!+mocp=music in my ears

Offline

#6 2012-01-02 16:41:33

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: SomaFM playlist

^ well i am not experienced in online radio but that doesn't work because it just links to a site, not directly to the URL of a stream. when i click on 'play now' on that site, it opens a Flash-player. nowhere does it seem to provide a stream-link for opening in an alternate player, only a .m3u file. when i download this file and see what is in it, i see this link: http://icy1.abacast.com:80/kplu-jazz24aac-64
try that one.

edit: ah, you can also just load the .m3u-file into moc and it works fine. listening to smooth jazz right now smile

also, pvsage, i get the same as you do, only 8 stations get loaded. no idea why, this is the first time i ever messed around with this.

edit2: fixed. there's a '=' missing in no. 8's entry. change the first to the second:

Length8-1
Length8=-1

Last edited by rhowaldt (2012-01-02 16:48:05)

Offline

#7 2012-01-02 16:51:31

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 12,106

Re: SomaFM playlist

^ Sharp eyes, dude!  Were you a sniper in a previous life?


I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#8 2012-01-02 17:07:38

gutterslob
#! Resident Bum
Registered: 2009-11-03
Posts: 3,005

Re: SomaFM playlist

^ One script, one kill.


Point & Squirt

Offline

#9 2012-01-02 17:54:05

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: SomaFM playlist

rhowaldt wrote:

...you can also just load the .m3u-file into moc and it works fine. listening to smooth jazz right now smile

Indeed, I got that playing too now smile
I tried several other jazz stations, and this is the only one so far where there's a download pop up for an .m3u-file, so I guess it was a lucky shot.

I also looked at http://en.wikipedia.org/wiki/PLS_%28file_format%29 to better understand the .pls-file, but that doesn't explain enough for me.

Oh well, one good jazz station already is a good start cool


#!+mocp=music in my ears

Offline

#10 2012-01-02 18:51:10

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: SomaFM playlist

@pvsage: nah man, don't give me too much credit, you could've done it yourself. follow the train of thought:
- it only loads 'till no. 8
- something goes wrong after no. 8
- let's check out some of the file syntax around no. 8
- hey, that one line looks out of place... oh, it is missing a '='!
- i'm really proud of myself and gonna post this to the forum right now wink

@catch22: good effort. really, it isn't that difficult. i do not understand everything about it, but the basic setup is easy to get. because each block is just an adjusted repetition of the one before it, you'll only have to study a single block:

File1=http://streamer-dtc-aa03.somafm.com:80/stream/1018
Title1=Groove Salad
Length1=-1

File1: the link to the first file. in this case it is a stream, but might as well be 'nyan_cat.mp3' or 'wilhelmscream.wav' or whatever.
Title1: the title of the first file
Length1: no idea why this is, but couldn't care less as it doesn't seem to be important.

when you look to the other blocks, you see you need to have each of them numbered, so remember that when adding in new stuff. also, notice what differentiates from the pattern

numberofentries=21

so, when i make entry no. 22, i have to increase this number to 22 as well, so it seems.

done, you now understand the syntax of the file!

Offline

#11 2012-01-02 19:15:46

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: SomaFM playlist

Awesome! Works in vlc too...


Be eggsalad to each other.

Offline

#12 2012-01-02 20:35:16

catch22
#! Junkie
From: Belgium, Europe
Registered: 2009-10-16
Posts: 478
Website

Re: SomaFM playlist

rhowaldt wrote:

...Length1: no idea why this is, but couldn't care less as it doesn't seem to be important.

LengthX : Length in seconds of track. Value of -1 indicates indefinite.

Learned that from the earlier mentioned wiki :-)

I'll play around with it a bit and see if I can get something decent together.
Main problem (to me) seems to be getting a correct url for streams.


#!+mocp=music in my ears

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo