Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: TIPS: Locating radio stream from indirect URL.
#1
Those links are tipically prolly redirects to the real playable URL which can be fished out easily
using the handy commands below.

Code:
pi@moode:~ $ wget http://opml.radiotime.com/Tune.ashx?id=s64589

   --2023-07-06 18:11:45--  http://opml.radiotime.com/Tune.ashx?id=s64589
   Resolving opml.radiotime.com (opml.radiotime.com)... 104.17.106.184, 104.17.107.184
   Connecting to opml.radiotime.com (opml.radiotime.com)|104.17.106.184|:80... connected.
   HTTP request sent, awaiting response... 200 OK
   Length: 74 [audio/x-mpegurl]
   Saving to: ‘Tune.ashx?id=s64589’
   Tune.ashx?id=s64589       100%[==================>]      74  --.-KB/s    in 0s
   2023-07-06 18:11:45 (1.18 MB/s) - ‘Tune.ashx?id=s64589’ saved [74/74]

pi@moode:~ $ ls
piano.sh  'Tune.ashx?id=s64589'

pi@moode:~ $ more 'Tune.ashx?id=s64589'

   https://dispatcher.rndfnk.com/crtve/rner...tor=tunein

This is the real stream url to use when configuring a Radio.
Reply
#2
(07-08-2023, 03:41 PM)janiversen Wrote: Those links are tipically prolly redirects to the real playable URL which can be fished out easily
using the handy commands below.

Code:
pi@moode:~ $ wget http://opml.radiotime.com/Tune.ashx?id=s64589

This is easy.

But since we don't always know whether the link is a redirect or a direct stream, what does wget do when given the real audio stream?
I guess it won't stop downloading...
Reply
#3
IIRC thats correct, it just sits there. Ctrl-c to terminate it.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
(07-08-2023, 08:21 PM)Nutul Wrote: This is easy.

But since we don't always know whether the link is a redirect or a direct stream, what does wget do when given the real audio stream?
I guess it won't stop downloading...

No it does not it stores the stream.

Sorry for the disturbance. I made this thread because I was told (in a review comment) that this information should be posted here.

Seen in the back mirror, I should not have posted it, please accept my apologies for the disturbance, but it seems there are no way (for me) to delete it.
Reply
#5
(07-08-2023, 09:39 PM)janiversen Wrote:
(07-08-2023, 08:21 PM)Nutul Wrote: This is easy.

But since we don't always know whether the link is a redirect or a direct stream, what does wget do when given the real audio stream?
I guess it won't stop downloading...

No it does not it stores the stream.

Ehm... that's what I said... you won't be able to understand immediately that this is a real stream, or a redirect.
Reply


Forum Jump: