Edzelf / Esp-radio

Internet radio based on Esp8266 and VS1053.
MIT License
622 stars 200 forks source link

How to obtain data-station-callsign for iHeartRadio #195

Closed Derek-K closed 3 years ago

Derek-K commented 3 years ago

I have read @NonaSuomy post #70 trying to understand how to make preset of ESP Radio. Not sure if iHeartRadio pages has been updated since then or something has changed. I can't seems to figure out how to get the data-station-callsign

For example, CHUM FM with URL https://www.iheart.com/live/chum-1045-6270/

Any clues? Thanks.

Derek-K commented 3 years ago

Oh neverminded. Found streamtheworldespradio.py by @NonaSuomy

Line 20-22

    Normal callsign format is 'WWWWFFAAA', where 'WWWW' is the radio station
    callsign, 'FF' is either 'AM' or 'FM', and 'AAA' is always 'AAC'.
    For this function, we expect the 'WWWWFF' part as input.
Derek-K commented 3 years ago

Oh wait.. but still bags the question, how to find data-station-callsign for other "non-radio" stations?

Derek-K commented 3 years ago

Got it...

ihr/IHR_XXXX for iHeartRadio feed ihr/TV_XXXX for TV stations ihr/XXXXFM for FM stations ihr/XXXXAM for AM stations