Moode Forum
[SOLVED] TIPS: Locating radio stream from indirect URL. - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9)
+--- Thread: [SOLVED] TIPS: Locating radio stream from indirect URL. (/showthread.php?tid=5685)



TIPS: Locating radio stream from indirect URL. - janiversen - 07-08-2023

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/rner3/main/mp3/high?aggregator=tunein

This is the real stream url to use when configuring a Radio.


RE: TIPS: Locating radio stream from indirect URL. - Nutul - 07-08-2023

(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...


RE: TIPS: Locating radio stream from indirect URL. - Tim Curtis - 07-08-2023

IIRC thats correct, it just sits there. Ctrl-c to terminate it.


RE: TIPS: Locating radio stream from indirect URL. - janiversen - 07-08-2023

(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.


RE: TIPS: Locating radio stream from indirect URL. - Nutul - 07-08-2023

(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.