You are not logged in.

#1 2010-03-16 19:11:55

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Help me download my favourtie radio show.

I want to download my fave radio show from kiss fm to listen to later.  You can listen anytime on the kiss kube website.  http://kube.totalkiss.com

The trouble is the link to the show I want is just a javascript function.  Any of you clever peeps know how I can pull it down.  Here is the link as shown when I hover my mouse over

javascript:parent.listenAgain('kisskube/kissauto/05-0000-0100-192.mp3','DJ%20Hype',40);

Offline

#2 2010-03-16 19:20:18

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Help me download my favourtie radio show.

url is in the string... 'kisskube/kissauto/05-0000-0100-192.mp3' i can't access the site (i'm not in uk) and i can't spoof it from work to verify the url, but that link is the path to the mp3. just have to figure out the base tongue


.:[My Blog] || [My GitHub]:.

Offline

#3 2010-03-16 19:40:30

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Help me download my favourtie radio show.

Yeah, I can't figure out the base.  I didn't know if w3m could evaluate the javascript and get me my file or something along those lines.

The show is on 22:00 on a Wednesday night you see,  I like to listen to it on my iPod in my work can etc

Thanks for helping tho.  Can't believe you can't get kiss outside the UK, damm your missing out smile

Last edited by gazj (2010-03-16 19:42:06)

Offline

#4 2010-03-16 19:56:53

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: Help me download my favourtie radio show.

What about ripper the radio show. See this. Both programs are in extra repo.

Offline

#5 2010-03-16 20:01:07

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: Help me download my favourtie radio show.

gazj wrote:

Can't believe you can't get kiss outside the UK, damm your missing out smile

I'll spoof it when i get home if you haven't figured it out yet... if you figure it out before i do maybe you should send it to me so i can see what i'm missing tongue


.:[My Blog] || [My GitHub]:.

Offline

#6 2010-03-16 20:02:22

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Help me download my favourtie radio show.

Thanks I will give it a go.  I was looking to somehow write a CLI app that would pull the latest weekly DJ Hype set from the KissKube,

Offline

#7 2010-03-17 19:35:33

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Help me download my favourtie radio show.

Ok, a new aproach.

mplayer -dumpaudio -dumpfile hype.mp3 http://tx-kiss.bauerdev.com/kiss

This will dump kiss's live stream to the mp3 file specified.  I can easily set this up when the show starts using cron.  Any ideas how I can make mplayer stop this an hour later.  The most simple way I know would be to use killall mplayer as a cron one hour later but this seems well unelegant.

Any ideas?

Last edited by gazj (2010-03-17 19:35:48)

Offline

#8 2010-03-17 19:38:32

crankyadmin
Member
Registered: 2009-09-27
Posts: 117
Website

Re: Help me download my favourtie radio show.

curl is your friend!


:: Github :: My AUR :: Coreboot ::

Offline

#9 2010-03-17 19:40:26

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: Help me download my favourtie radio show.

man at

. Maybe works.

Last edited by n0dix (2010-03-17 19:40:42)

Offline

#10 2010-03-17 20:12:27

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: Help me download my favourtie radio show.

crankyadmin wrote:

curl is your friend!

Cheers mate, got it.  Now to just put it in cron smile

#!/bin/bash

outfile=/mnt/docs/shared/Music/Radio/Hype/Hype-`date +%y-%W`.mp3
length=3900
stream=http://tx-kiss.bauerdev.com/kiss

curl -sS -o $outfile -m $length $stream

Offline

Board footer

Powered by FluxBB