PDA

View Full Version : ANNOUNCE: iHeartRadio to play US live iHeart radio stations



bpa
2017-12-28, 07:01
This plugin enables listening to many iHeart live US stations. This is a LMS plugin which means a local LMS is required - it does not work with mysqueezebox.com connected devices.
To install - add the respositry URL below to the LMS WebUI/Settings/Plugins "Additional Respositories" at the bottom of the page.

The plugin provides two menus
* a keyword search - seems to match a word in station name, callsign or description.
* browse by genre

Each iHeart station may have a number of "playable" URLs but not all LMS version and players can play all types of URL.

A station on a menu is a playlist of the station's URLs ordered by probably most playable first.

Once playing a user can save as a Favorite.

The URLs are ordered as follows: Shoutcast, Secure Shoutcast, HLS, secure HLS, PLS, STW and secure STW

Shoutcast URls are "normal" http streams with audio in MP3 or AAC.
Secure Shoutcast URls are https streams with audio MP3 or AAC - these require a version of LMS that supports "https" to proxy the streram.
HLS and Secure HLS streams are Apple HLS (i.e.m3u8) they will require PlayHLS plugin (and ffmpge/avconv) to be installed to be playable. iHeart HLS are "special "and do not play properly (e.g. gaps, interleaved audio).
PLS stream are streams which are pls playlist format - the actual stream may be in the format of any of the above 4 streams.
STW and secure STW - these are streamtheworld URLs which may or may not work as they are old.

iHeart API may also provides rtmp and flv Flast stream but these are not playable on LMS.

A user can drill down the Station instead of playing and copy an URL into a Favorite. Only Shoutcast URLs found by this plugin will be playable on a device connected to mysqueezebox.com assuming the shoutcast URL has been copied as a mysqeueezebox favorite.

Repository URL
http://downloads.sourceforge.net/project/bpaplugins/iheartradio-repo.xml

bpa
2017-12-28, 07:03
Place holder for any additional notes.

bwaldron
2017-12-28, 12:40
Excellent, thanks!

paul-
2017-12-28, 14:06
Couple of thoughts.


The couple of searches I did worked fine.
Is there anyway to pull the artwork out of the stream from the HLS data?
HLS streams are sometimes interrupted, like it is not looking ahead far or often enough. More info below


The link that you are using is the plain link for the HLS stream. it only returns a little data. Only one .aac link and is also missing all of the track data.


paul@NUC-Devel:~/tmp$ curl 'https://c13.prod.playlists.ihrhls.com/1781/playlist.m3u8'
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=49000,CODECS="mp4a.40.5"
https://c13.prod.playlists.ihrhls.com:443/1781/playlist.m3u8?listeningSessionID=5a2f3a4d999cee15_ 1450234_m4TK3mAw__0000000JYJB&downloadSessionID=0

Where as if you look a the web player, it gets much more data in the m3u8 file.


paul@NUC-Devel:~/tmp$ curl 'https://c13.prod.playlists.ihrhls.com/1781/playlist.m3u8?listeningSessionID=5a2f3a4d999cee15_ 1449282_W3dgrdta__0000000XQHB&downloadSessionID=0&at=0&clientType=web&fb_broadcast=0&init_id=8169&modTime=1514493833507&pname=OrganicWeb&profileid=390169794&birthYear=null&territory=US&host=webapp.US&listenerId=1499618675991_72232&uid=1499618675631&age=null&gender=null&amsparams=playerid%3AiHeartRadioWebPlayer%3Bskey%3 A1514493833&terminalid=159&awparams=g%3Anull%3Bn%3Anull%3BcompanionAds%3Atrue&playedFrom=303&devicename=web-desktop'
#EXTM3U
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10,title="Treasure",artist="Bruno Mars",url="song_spot=\"M\" MediaBaseId=\"1917138\" itunesTrackId=\"0\" amgTrackId=\"-1\" amgArtistId=\"0\" TAID=\"337578\" TPID=\"20634088\" cartcutId=\"6010447001\" amgArtworkURL=\"http://assets.iheart.com/images/1080/MI0003501559\" length=\"00:02:10\" unsID=\"-1\""
http://c13hlsmaster103.ihrprod.net:80/1781/eVByy5eLm92-151449456-10031.aac
#EXTINF:10,title="Treasure",artist="Bruno Mars",url="song_spot=\"M\" MediaBaseId=\"1917138\" itunesTrackId=\"0\" amgTrackId=\"-1\" amgArtistId=\"0\" TAID=\"337578\" TPID=\"20634088\" cartcutId=\"6010447001\" amgArtworkURL=\"http://assets.iheart.com/images/1080/MI0003501559\" length=\"00:02:10\" unsID=\"-1\""
http://c13hlsmaster103.ihrprod.net:80/1781/xitkVve13I-151449457-9984.aac
#EXTINF:10,title="Treasure",artist="Bruno Mars",url="song_spot=\"M\" MediaBaseId=\"1917138\" itunesTrackId=\"0\" amgTrackId=\"-1\" amgArtistId=\"0\" TAID=\"337578\" TPID=\"20634088\" cartcutId=\"6010447001\" amgArtworkURL=\"http://assets.iheart.com/images/1080/MI0003501559\" length=\"00:02:10\" unsID=\"-1\""
https://cdn-chunks.prod.ihrhls.com/1781/dl1cEbjC1Yb-151449458-9984.aac
paul@NUC-Devel:~/tmp$


I pulled this link from the web player, and while it was still valid, I loaded that in to LMS, and that hls stream plays stable.

bpa
2017-12-28, 14:18
Couple of thoughts.


The couple of searches I did worked fine.
Is there anyway to pull the artwork out of the stream from the HLS data?
HLS streams are sometimes interrupted, like it is not looking ahead far or often enough. More info below



This plugin has nothing to do with HLS. The plugin is just to do with finding the URLs for a iHeart station. It also loads the artwork associated with the URLs. The subsequent display of artwork, metadata is dependent on the LMS implementation of the playing stream format - not this plugin.

I don't want this thread sidetracked discussing stream format such as HLS, STW or Flash and LMS implementations..

The implementation of HLS would be best handled by a new native HLS plugin. There is a minimal version in the BBCiPlayer plugin but it is sufficient for BBC. HLS has many versions and AFAICT they are not documented. If someone chose to implement a full HLS plugin, it would be reasonable amount of work and could be discussed in a different thread. HLS is chunked http - where the m3u8 "file" is refreshed with new URLs regularly (e.g. every 6 secs) and the audio sytream ios made up of small http files of about 6 secs durations. The playHLS plugin offloads the implementation by using ffmpeg. The BBCiPlayer Perl implementation of HLS exposed "shortcomings" within LMS resulting in poor playback on some OSs.

bpa
2017-12-29, 05:14
To clarify the URLs that iHeart supplies that the plugin puts into a playlist. The follow is one station entry - the "streams" array is the one of interest.



{
"id": 1781,
"score": 0,
"name": "MIX 107.7",
"responseType": "LIVE",
"description": "Dayton's Variety Station",
"band": "FM",
"callLetters": "WMMX-FM",
"logo": "http:\/\/i.iheart.com\/v3\/re\/assets\/images\/8c5f9c8e-6dea-4bfc-88fa-e9249bf07ea3.png",
"freq": "107.7",
"cume": 113700,
"countries": "US",
"streams": {
"hls_stream": "http:\/\/c13.prod.playlists.ihrhls.com\/1781\/playlist.m3u8",
"shoutcast_stream": "http:\/\/c13icyelb.prod.playlists.ihrhls.com\/1781_icy",
"secure_rtmp_stream": "rtmp:\/\/cp20022.live.edgefcs.net\/live\/Day_OH_WMMX-FM_OR@152626",
"secure_hls_stream": "https:\/\/c13.prod.playlists.ihrhls.com\/1781\/playlist.m3u8",
"secure_shoutcast_stream": "https:\/\/c13icy.prod.playlists.ihrhls.com\/1781_icy"
},
"isActive": true,
"modified": "1503157180427",
"markets": [
{
"name": "DAYTON-OH",
"marketId": "171",
"sortIndex": 2,
"city": "Dayton",
"stateId": 41,
"stateAbbreviation": "OH",
"cityId": 171,
"country": "US",
"countryId": 1,
"primary": true,
"origin": true
}
],
"genres": [
{
"id": 8,
"name": "Mix & Variety",
"sortIndex": 60,
"primary": true
}
],
"esid": "1334",
"feeds": {
"site_id": "1898",
"feed": "www.iheart.com\/live\/1781\/"
},
"format": "ACHOTMODERN",
"provider": "Clear Channel",
"rds": "WMMX-FM Dayton",
"website": "www.mix1077.com",
"social": {
"twitter": "mix1077",
"facebook": "mix1077"
},
"adswizz": {
"publisher_id": "7991",
"adswizzHost": "false",
"enableAdswizzTargeting": "false"
},
"adswizzZones": {
"audio-fill-zone": "36998",
"audio-zone": "37000",
"optimized-audio-fill-zone": "37001",
"audio-exchange-zone": "36999",
"display-zone": "37002"
},
"callLetterAlias": "WMMX-FM",
"callLetterRoyalty": "WMMX-FM",
"fccFacilityId": "1904",
"rdsPiCode": "15A7"
}

paul-
2017-12-29, 07:00
Well as long as they keep the ICY streams going, itís no big deal. I just assumed they would be dropping them.

Thanks for putting this together.

bpa
2017-12-29, 07:15
Well as long as they keep the ICY streams going, itís no big deal. I just assumed they would be dropping them.

I cannot play iHeart stream from web site or apps but I can play many stations (but not all) using URL directly so the main purpose of the plugin is providing simple access.

Shoutcast and possibly pls are usually there for legacy internet radio devices who do not support HLS.

I'd expect HLS is the basis for the iHeart closed future. The additional metdata info on EXTINF lines are iHeart specific. I think the gaps in m3u8 playback are there to discourage the use of non iHeart players such as ffmpeg as I get the same gaps with VLC with the "vanilla" m3u8 URL

If there was demand/need I might see oif the BBCiPlayer HLS can be modified to play iHeart streams but at the moment with only 11 downloads - I doubt it.

paul-
2017-12-29, 08:25
I suspect you are right on the modified HLS, ffmpeg 2.8 would work okay, but have drop outs. 3.4 would only play the first set of files and then error out. Other web based HLS streamers seem to play the stream okay. Wish my perl(Plugin) skills were better to play with it.

bpa
2017-12-29, 10:56
I suspect you are right on the modified HLS, ffmpeg 2.8 would work okay, but have drop outs. 3.4 would only play the first set of files and then error out. Other web based HLS streamers seem to play the stream okay. Wish my perl(Plugin) skills were better to play with it.

Which web based players ? It may help if they are in Javascript - the iHeart one is a Flash based player.

I suspect the gaps are to allow ad insertion and streaming is in conjunction with adswizz (see http://www.adswizz.com/clear-channels-iheartradio-partners-with-adswizz-to-monetize-its-digital/ )

paul-
2017-12-29, 16:06
Yes, they are flashed based (hlsplayer.net was one). The gaps I'm talking about are during the middle of the song, not really a gap but like the stream pauses for a while and then restarts in place. Nothing unusual in the ffmpeg debug output when this happens.

bpa
2017-12-29, 16:12
Yes, they are flashed based (hlsplayer.net was one). The gaps I'm talking about are during the middle of the song, not really a gap but like the stream pauses for a while and then restarts in place. Nothing unusual in the ffmpeg debug output when this happens.

I also heard the gaps in the middle and after playing for a long time I got two ads interleaved - something went badly wrong. When played with VLC and enabling message window to DEBUG - "underflow" and other errors (ADTS multiframe errors) occur. It's possible the stream is "stealing" time between segments broadcast to allow for ad insertion later.

There have been a few post on ffmpeg about audio gaps - noting this problem but they seem to resolve it.

oldfolkie
2017-12-30, 18:04
Thank you for a fabulous plugin! It's just what I've been hoping for and it works great!

BobHy
2018-01-04, 08:08
Many thanks for submitting this. iHeart seems to be gobbling up more and more stations. Just recently I lost two that I frequently listen to. This plugin solved my problem.

My previous solution to the issue was to run the station stream on a computer, then use the WaveInput plugin to listen on my Squeezebox players. This iHeart plugin is much cleaner.

yeomanspc
2018-01-05, 03:43
Many thanks for this.

I got an error 503 bad gateway when I first tried it yesterday, but it's working fine now. For my stations all seem to work initially but the HLS and Secure HLS have breaks every 30 - 60 seconds. The station artwork is displayed on my controller display but reverts to the antenna picture sometimes
This on my QNAP which is my main music server.
I have some old SB2 players - it works fine on that also (not HLS), and displays the track correctly. I have some old SLIMP3's and will try one of them later.

On the Odroids runing MAX2PLAY I cannot play the HLS streams. Maybe that's an FFMPEG thing - I do have your PLAYHLS plugin installed but I do not think I copied FFMPEG modules in (do I have to?)

Anyway, for now, I am more than happy. 11 downloads? Give it time...

This is great example of the power of the Squeezebox system. How many 15 year old streaming music devices can play iHeart radio streams? Sadly, this power is also what killed it because it's hard to force people to keep buying expensive new players.

bpa
2018-01-05, 04:52
I got an error 503 bad gateway when I first tried it yesterday, but it's working fine now.
This is an unoffical plugin making use of an undocumented API without any sign-in so odd behaviour or breakdown may occur at any time.

I don't use the plugin very often but I noticed the 503 yesterday and today. I think it was an iheart CDN issue rather anything else - I compared the iheart.com HTTP "genre catalog" request against the similar plugin HTTP request and no difference so I don't think it is an API change. LMS will cache responses so if you get an error, it is possible LMS will cache that bad response for 15-30 minutes so gateway error may have gone away quickly but it may still appear on LMS for a number of minutes. I've tried to disable caching where it is reasonable.


For my stations all seem to work initially but the HLS and Secure HLS have breaks every 30 - 60 seconds. The station artwork is displayed on my controller display but reverts to the antenna picture sometimes
This on my QNAP which is my main music server.
I have some old SB2 players - it works fine on that also (not HLS), and displays the track correctly. I have some old SLIMP3's and will try one of them later.

On the Odroids runing MAX2PLAY I cannot play the HLS streams. Maybe that's an FFMPEG thing - I do have your PLAYHLS plugin installed but I do not think I copied FFMPEG modules in (do I have to?)

AFAICT (at least from a non UK non US location) HLS streams do not offer any better quality that shoutcast - so don't opt for HLS if shoutcast streams are available.

If you look at top of the thread - the HLS gaps issue has been discussed already. iHeart HLS stream are "special" - I think spaces are being for ads - so at the moment HLS stream do not play properly. As iHeart stream do not play for me on any browser (chrome, Firefox or Explorer) but do play with gaps using ffmpeg so I don't have any reference "good" stream to compare and determine what is "special". It is possible that it requires "personal details" to to tune the ads. I may look into it later.

Images are LMS for menus - PlayHLS plays HLS stream but does not support metadata or images so it will revert to LMS generic (which may be affected by where HLS URLs appear in the generated playlist) .

Have you found a station which only has HLS ?

I have worked out how to make Streamtheworld URLs playable but so far no request so I will not update the plugin until there is a need.

edit:

Coincidentally Squeezebox users of Pandora and Slacker have got 50x error in the last few days due to changes made by Amazon in the kernel s/w of their AWS servers. There may be a some connection but there is nothing I can do.

tandy1000rl
2018-01-22, 21:57
Anyone else noticing many of these icy_XXXX shoutcast streams now stutter when played natively on Radio or Touch hardware? Problem goes away when streams are transcoded to FLAC, MP3, or PCM in File Types section of LMS (so I know it's not my network). Anyone know if something has changed recently with these streams? Does hardware not support latest HE-AAC v2 (SBR+PS) which this stream seems to contain?

For example, does this stream play without stuttering "natively" on your Radio or Touch: http://c13icyelb.prod.playlists.ihrhls.com/1765_icy

It seems like it tries to decode but doesn't have the internal processing power to keep up, because the stuttering gets worse when doing other things on the Radio simultaneously (ie. navigating menus, etc.)

bpa
2018-01-23, 02:14
Anyone else noticing many of these icy_XXXX shoutcast streams now stutter when played natively on Radio or Touch hardware? Problem goes away when streams are transcoded to FLAC, MP3, or PCM in File Types section of LMS (so I know it's not my network).
Transcoding doesn't prove it's not your network. It just show the stream could be "lumpy".
Does the problem go away if you enable "proxied" playing for Touch player using WebUI Setting/Player/Audio/Streaming Method (i.e. no transcoding but LMS acts as a larger buffer)


Does hardware not support latest HE-AAC v2 (SBR+PS) which this stream seems to contain?
Decoder are in firmware not hardware. HE-AAC v2 was defined in 2004 and am pretty sure Touch supports it. Usually incompatibilities result in no audio and are logged. You could look at Touch log for audio decode message - rlogin and look ta /var/log/messages while playing.


For example, does this stream play without stuttering "natively" on your Radio or Touch: http://c13icyelb.prod.playlists.ihrhls.com/1765_icy

It seems like it tries to decode but doesn't have the internal processing power to keep up, because the stuttering gets worse when doing other things on the Radio simultaneously (ie. navigating menus, etc.)

Default is for stream to be played direct (i.e. audio goes direct from router to Touch - not via LMS) but this means Touch buffer needs to be topped up frequently to ensure smooth playing. If source station is slow to respond to "top up" requests or there is a block somewhere between station & player and then Touch may run out of audio. Usual LMS remedies for these "lumpy" stream are (i) increase Radio Station Buffer setting in WebUI Setting/Advanced/Network (default 3 secs maybe too small) and (ii) enable "Proxied streaming" for player

edit:

The example stream has a slow bit rate so I am a bit surprised that stuttering happens as slow bit rate means lots of audio time takes up little buffer space.

Since you have this problem with many " icy_XXXX" stations - it seems to indicate a network issues rather than a station. Station use CDNs to deliver streams and CDNs are organised regionally so perhaps the CDN in your region has some problems.

Raymond Woodward
2018-01-23, 04:41
For example, does this stream play without stuttering "natively" on your Radio or Touch: http://c13icyelb.prod.playlists.ihrhls.com/1765_icy

It seems like it tries to decode but doesn't have the internal processing power to keep up, because the stuttering gets worse when

FWIW that stream plays perfectly here (Squeezebox Duet - running the latest LMS 7.91 and bpa's plug in) ...

tandy1000rl
2018-01-23, 21:27
Ran some more tests tonight:
1. Problem still occurs when using "proxied" streaming (and no AAC-->MP3 transcoding)
2. Also still occurs when increasing the buffer in LMS from 3 sec to 10 sec
3. Problem occurs on *all* of my Radios...does NOT occur on any of my Touches
4. Stream plays fine on VLC on a computer on same network
4. These steams all worked fine on Radio a few days ago. Other streams, like http://stream.srg-ssr.ch/m/rsc_de/mp3_128 which is 128kbps MP3 works fine on same Radio. Transcoding the AAC stream to full bandwidth PCM works fine--no stutter. That said, the stuttering doesn't feel like normal buffer underruns which typically result in silence when it occurs. Rather, it sounds like it's decoding "incorrectly" or at an unsupported sample rate...more like a rapidly skipping record. The stream displays as 49kbps CBR in More Info on the Radio display which seems abnormal to me.

Raymond - Can a Duet decode AAC natively? Thought that hardware would have to transcode in LMS which also works fine on my Radio---it's the native decoding that has suddenly become fussy.

Will keep poking around in the logs to see if anything looks suspicious there. Thanks!

bpa
2018-01-24, 02:03
3. Problem occurs on *all* of my Radios...does NOT occur on any of my Touches
Strange because Radio and Touch are identicial in software terms - both can play AAC natively and have exactly same decoder.


Stream plays fine on VLC on a computer on same network
What is used to play VLC / How is it connected to your router ?


These steams all worked fine on Radio a few days ago. Other streams, like http://stream.srg-ssr.ch/m/rsc_de/mp3_128 which is 128kbps MP3 works fine on same Radio. Transcoding the AAC stream to full bandwidth PCM works fine--no stutter. That said, the stuttering doesn't feel like normal buffer underruns which typically result in silence when it occurs. Rather, it sounds like it's decoding "incorrectly" or at an unsupported sample rate...more like a rapidly skipping record. The stream displays as 49kbps CBR in More Info on the Radio display which seems abnormal to me.
49kbps is exactly what the station reports in its HTTP header.


Can a Duet decode AAC natively? Thought that hardware would have to transcode in LMS which also works fine on my Radio---it's the native decoding that has suddenly become fussy.
Touch and Radio use identical decoder.
Any of the older generation player SB Reciver (part of Duet) , SB3, Trasnporter etc. cannot play AAC natively.


Will keep poking around in the logs to see if anything looks suspicious there. Thanks!

The logs to look at are the internal Radio logs - use rlogin and also maybe increase logging level to DEBUG.

What is your network topology ?
What are the hops a network packet takes from router to Radio ?

Have you installed any plugin that alter transcoding and/or conf files (e.g. ones that process audio) ?
What OS, what version of LMS and what are the AAC setting in Settings/Advanced/FileTypes

bpa
2018-01-24, 02:53
I've played the problem station for 30 mins on a SB Radio without any issues.

When you get problems - how soon does it happen ? how often does it happen ?

tandy1000rl
2018-01-24, 17:42
Well, the problem seems to have resolved itself tonight. Radios are now playing iHeart AAC streams natively without skipping/stutter.

Only thing I can think of is when you said, "Station use CDNs to deliver streams and CDNs are organised regionally so perhaps the CDN in your region has some problems."

From my server logs, my particular stream was coming from: Slim::Networking::Async:: DNS::resolve (44) Using cached DNS response 34.232.104.182 for c13icyelb.prod.playlists.ihrhls.com which is an Amazon IP/host per Whois. Curious if that's the IP your stream is hosted by? Maybe my CDN was having issues or undergoing some sort of upgrade/maintenance.

Will reach back out if problem comes back! Thanks for all of your help and generous contributions to the Squeezebox community!

rgdawson
2018-01-31, 20:45
Yeah! Thanks for this! I installed the plugin, searched for KOA, and boom! I can listen to this station again.

R. Greg Dawson

sfurbish
2018-02-13, 19:08
Repository URL
***/project/bpaplugins/iheartradio-repo.xml[/url]

I get this "Bad repository ***/project/bpaplugins/iheartradio-repo.xml[/url] - Connect timed out: Bad file descriptor" when I try to add the repository as described. Any idea on what I've done wrong? Thanks

sfurbish
2018-02-13, 19:56
I get this "Bad repository ***/project/bpaplugins/iheartradio-repo.xml[/url] - Connect timed out: Bad file descriptor" when I try to add the repository as described. Any idea on what I've done wrong? Thanks

Sorry to reply to my own query, but I realized I was still using ver 7.7.5. Switched to 7.9 and error went away.

bpa
2018-02-14, 02:33
Sorry to reply to my own query, but I realized I was still using ver 7.7.5. Switched to 7.9 and error went away.

Unless the URL went to a https one - I don't think this was a LMS version issue probably just sourceforge not replying in time. That said, using 7.9.* is better as https usage appears more often now..

Raymond Woodward
2018-03-15, 22:21
Interesting times at iHeart radio it seems ...

https://radiotoday.co.uk/2018/03/iheartmedia-files-for-chapter-11-bankruptcy/


What effect (if any) it will have on their on line services remains to be seen.

markm9999
2018-03-19, 20:04
Just discovered this plugin - Awesome!

No more manually putting in the the stream info for me!

Great job, and thanks!

bperella
2018-04-20, 15:31
I have installed your iheart Plugin to my LMS. I'm not sure whre to go to search and find stations. I'm interested in WBZ 1030 Boston. Can I get this to play directly on my squeezebox radio?

Thanks, Bernie

bpa
2018-04-20, 17:10
I have installed your iheart Plugin to my LMS. I'm not sure whre to go to search and find stations. I'm interested in WBZ 1030 Boston. Can I get this to play directly on my squeezebox radio?

Under Radio / iHeart Radio/ Live Search - enter WBZ - the last one on the list is WBZ NewsRadio 1030 - I don't know if this is Boston - but it plays. The first station in the list is a http/MP3 which willplay OK on SBRadio. The other ones in the list are different formats which may not play.

bperella
2018-04-21, 07:49
Under Radio / iHeart Radio/ Live Search - enter WBZ - the last one on the list is WBZ NewsRadio 1030 - I don't know if this is Boston - but it plays. The first station in the list is a http/MP3 which willplay OK on SBRadio. The other ones in the list are different formats which may not play.

I had to revert my radio to a Squeezebox from a UE. The LMS is not seeing the squeeze box. Shouldn't it still play on my PC after the search found the station?

bperella
2018-04-21, 09:18
Was able to get 4 iHeart stations playing on my Squeezebox. Thank you so much. I was ready to retire the Squeezebox.

bpa
2018-04-22, 09:39
. Shouldn't it still play on my PC after the search found the station?

Only if you have started an SB player on your PC such as Squeezelite or Squeezeplay. LMS is a media server - not a player.

RobTheGob
2018-07-23, 18:31
This is GREAT! Thanks so much!

jeff52807
2018-07-25, 15:58
Before I try this, would someone be so kind as to see if it will allow me to listen to WLS-AM (890) Chicago? It has disappeared from the radio station Search and my saved favorite won't play.

Thanks in advance!

RobTheGob
2018-07-25, 16:03
Before I try this, would someone be so kind as to see if it will allow me to listen to WLS-AM (890) Chicago? It has disappeared from the radio station Search and my saved favorite won't play.

Thanks in advance!

I'm listening to it right now!

Stuttered a bit when I first started streaming - but it's been OK since.

jeff52807
2018-07-25, 17:49
I'm listening to it right now!

Stuttered a bit when I first started streaming - but it's been OK since.

Thank-you! I'll give it a try if I can figure out how to do it. ;)

jeff52807
2018-08-06, 12:44
I'm listening to it right now!

Stuttered a bit when I first started streaming - but it's been OK since.

If so, help by phone or email would be greatly appreciated!

bpa
2018-08-06, 14:07
If so, help by phone or email would be greatly appreciated!
What help do you need ?
What have you tried ?

The plugin requires that you are running a local LMS system. What OS is your LMS server system running and what version of LMS ?

To install the plugin you need to add the repsoitory URL to your local LMS via the WebUI Settings/Plugins page - adding the repository URL at the bottom of that page.

jeff52807
2018-08-08, 13:58
What help do you need ?
What have you tried ?

The plugin requires that you are running a local LMS system. What OS is your LMS server system running and what version of LMS ?

To install the plugin you need to add the repsoitory URL to your local LMS via the WebUI Settings/Plugins page - adding the repository URL at the bottom of that page.

I sent you an email. Did you receive it?

bpa
2018-08-08, 15:28
I sent you an email. Did you receive it?

I don't solve plugin issues by email unless there is confidential info which cannot be in this case.

jeff52807
2018-08-08, 17:27
I sent you an email. Did you receive it?


What help do you need ?
What have you tried ?

The plugin requires that you are running a local LMS system. What OS is your LMS server system running and what version of LMS ?

Windows 10
LMS 7.9.1
I.ve added the repository URL

To install the plugin you need to add the repsoitory URL to your local LMS via the WebUI Settings/Plugins page - adding the repository URL at the bottom of that page.

25417

25418

25419



I clicked Apply and restarted PC.

If I'm okay to here, what do I do next?

bpa
2018-08-09, 02:31
If I'm okay to here, what do I do next?
I am not familiar with Windows LMS and when it needs to be restarted. It is not necessary to restart Windows or a PC in this procedure - just LMS.

The ellipsis ("...") in the middle of the URL means you have not copied the uRL correctly. When hot linked URLS are long the forum cuts out the middle and inserts "..." so the beginning and end of the URL just show.
In general (but can vary by OS and browser) when copying an highlighted URL - hover over the link, use mouse right click and select "Copy Link Address" or "Copy URL" menu - not "Copy"

The following is the full repository link highlighted but not hot linked - it should be so you need select all the text in rfed between and including "http" and ".xml"
http://downloads.sourceforge.net/project/bpaplugins/iheartradio-repo.xml

The Settings/Plugins screen should be refreashed and at the very bottom there should be a section labelled "bpa's iHeart Radio Plugins Short" with on entry "iHeartradio (v1.0)". Check the box opposite "iHeartRadio" and click Apply - if LMS needs to be restarted you should be prompted.

After clicking Apply - if LMS needs to be restarted you should be prompted - NOT Windows or the PC

Go to Settings/Plugins (after Restart if it was necessary) and look for iHeartRadio at bottom of page and if the plugin install is succcessful, "iHeartRadio (v1.0)" will appear in the the "active plugins" list of Settings/Plugins.

If Plugin is active then on main menu under Radio there will now be a iHeartRadio menu item alongside "Staff Picks", "Local" etc - select this iHeartRadio menu to find and play your station.

jeff52807
2018-08-09, 10:28
I am not familiar with Windows LMS and when it needs to be restarted. It is not necessary to restart Windows or a PC in this procedure - just LMS.

The ellipsis ("...") in the middle of the URL means you have not copied the uRL correctly. When hot linked URLS are long the forum cuts out the middle and inserts "..." so the beginning and end of the URL just show.
In general (but can vary by OS and browser) when copying an highlighted URL - hover over the link, use mouse right click and select "Copy Link Address" or "Copy URL" menu - not "Copy"

The following is the full repository link highlighted but not hot linked - it should be so you need select all the text in rfed between and including "http" and ".xml"
http://downloads.sourceforge.net/project/bpaplugins/iheartradio-repo.xml

The Settings/Plugins screen should be refreashed and at the very bottom there should be a section labelled "bpa's iHeart Radio Plugins Short" with on entry "iHeartradio (v1.0)". Check the box opposite "iHeartRadio" and click Apply - if LMS needs to be restarted you should be prompted.

After clicking Apply - if LMS needs to be restarted you should be prompted - NOT Windows or the PC

Go to Settings/Plugins (after Restart if it was necessary) and look for iHeartRadio at bottom of page and if the plugin install is succcessful, "iHeartRadio (v1.0)" will appear in the the "active plugins" list of Settings/Plugins.

If Plugin is active then on main menu under Radio there will now be a iHeartRadio menu item alongside "Staff Picks", "Local" etc - select this iHeartRadio menu to find and play your station.

Thank you very much!!

I'll let you know how I do. I figured it had something to do with the repository URL. That Ö didn't seem right.

Long live the Squeezebox!

jeff52807
2018-08-10, 11:03
Thank you very much!!

I'll let you know how I do. I figured it had something to do with the repository URL. That Ö didn't seem right.

Long live the Squeezebox!

It worked! I got the 3 stations I wanted, and am sure I'll be adding more. You ROCK! Thanks!!!!:D

Apteryx
2018-08-20, 19:36
Thanks very much for this plugin - I just love how this gear lives on & on with Squeezelite-x and Spotty and now this... It's the gift that just keeps on giving!

I have a question though - As with other countries, iHeartradio have gobbled up stations in my country too (New Zealand) - how difficult would it be, or is it even possible, to do the same thing for other geographies? I can listen to US stations just fine using the plugin but there are some local ones now only accessible by their App which I would love to have access to again...

Any thoughts or am I just dreaming?

Paul Webster
2018-08-21, 07:00
Can you give an example of one NZ station that this has happened to?

bpa
2018-08-21, 07:27
Thanks very much for this plugin - I just love how this gear lives on & on with Squeezelite-x and Spotty and now this... It's the gift that just keeps on giving!

I have a question though - As with other countries, iHeartradio have gobbled up stations in my country too (New Zealand) - how difficult would it be, or is it even possible, to do the same thing for other geographies? I can listen to US stations just fine using the plugin but there are some local ones now only accessible by their App which I would love to have access to again...

Any thoughts or am I just dreaming?

Looks possible. I am looking into it and quick tests seems to work. Currently seeing how to make it work for NZ, AU, and CA.

The plugin only get playable URLs- the playability of an URL will depend on the user location and the format of the stream.

bpa
2018-08-21, 07:28
Can you give an example of one NZ station that this has happened to?
Example URL to get a NZ list of station for a specific genre
http://nz.api.iheart.com/api/v2/content/liveStations?countryCode=NZ&limit=10000&genreId=18

bpa
2018-08-21, 12:40
I've quicky done (i.e. very little testing) a V1.1 which supports in addition to US search and Genre,

New Zealand NZ - search & Genre
Australia AU - Search
Canada CA - Search

To beta test it has a new repo URL (just add -beta to middle of existing repo URL)
http://downloads.sourceforge.net/project/bpaplugins/iheartradio-beta-repo.xml

You should get prompted to upgrade to V1.1.

I don't know local stations nor what is wanted by users - so please test.

Raymond Woodward
2018-08-21, 12:53
I've quicky done (i.e. very little testing) a V1.1 which supports in addition to US search and Genre,

New Zealand NZ - search & Genre
Australia AU - Search
Canada CA - Search

To beta test it has a new repo URL (just add -beta to middle of existing repo URL)
http://downloads.sourceforge.net/project/bpaplugins/iheartradio-beta-repo.xml

You should get prompted to upgrade to V1.1.

I don't know local stations nor what is wanted by users - so please test.

Seems to run ok here, currently listening to Hauraki Classic Rock (HLS) from NZ.

Apteryx
2018-08-21, 15:27
I've quicky done (i.e. very little testing) a V1.1 which supports in addition to US search and Genre,

New Zealand NZ - search & Genre
Australia AU - Search
Canada CA - Search

To beta test it has a new repo URL (just add -beta to middle of existing repo URL)
http://downloads.sourceforge.net/project/bpaplugins/iheartradio-beta-repo.xml

You should get prompted to upgrade to V1.1.

I don't know local stations nor what is wanted by users - so please test.

YES - that is awesome - it worked perfectly first time - thank you!
Summer WILL come and I will be able to listen to Cricket commentary again!!
I can't thank you enough for that!

Apteryx
2018-08-23, 21:18
YES - that is awesome - it worked perfectly first time - thank you!
Summer WILL come and I will be able to listen to Cricket commentary again!!
I can't thank you enough for that!
-
I Had a more extensive play with this - I'm not sure that there isn't a little bug or odd behavior when a "Live Stations by Genre" search is performed - it returns a list as expected, but the values in that list look overstated to me eg Mix & Variety (116) which is actually 39 stations, but i'm presuming the count of 116 is an enumeration of the combination of different stations and stream types? The same search for News & Talk gives 145, but lists only 9 stations... so I don't know if there is something funky there or not.

In any case, i'm not stressed as I can find the one or two I want, so that's more of an observation really (and might just be down to my interpretation of the results).

bpa
2018-08-24, 01:38
I Had a more extensive play with this - I'm not sure that there isn't a little bug or odd behavior when a "Live Stations by Genre" search is performed - it returns a list as expected, but the values in that list look overstated to me eg Mix & Variety (116) which is actually 39 stations, but i'm presuming the count of 116 is an enumeration of the combination of different stations and stream types? The same search for News & Talk gives 145, but lists only 9 stations... so I don't know if there is something funky there or not.

In any case, i'm not stressed as I can find the one or two I want, so that's more of an observation really (and might just be down to my interpretation of the results).

Thanks. Your observation is correct. The count at the genre level is the value as returned by iHeart but when list of stations is fetched for some reason only a much smaller number is actually provided sometimes none at all (e.g. Jazz, Blues). This is the reason is why I didn't provide Genre search for AU and CA - I saw same "problem" but seems to be worse. Sometimes only a test station is returned.

I thought the issue might be related to geo-locking but seems not. The API are not documented and I cannot run iHeart Apps to monitor use of API because of geo locking - so what the plugin does is based on educated guesswork. It's possible the Genre API is no longer actively used by iHeart apps.

AFAICT the station Search supports a wide range of keywords not just words in the station id.

In the beta V1.1 - I accidentally left on some debugging logging statements

I'll make V1.1 (without debug logs) the main release over the weekend.

s2kiwi
2019-01-21, 12:45
Hi guys, only spotted yesterday that this has been extended to NZ (awesome!).

However installing it last night I have a weird behaviour and don't know where to begin on de-bugging.

It searches and loads a stream fine, however each HLS stream loads with only a 10sec track length and then simply stops playing at the end of it.

What should it be doing? Any idea what I'm doing wrong?

S

bpa
2019-01-21, 13:35
Hi guys, only spotted yesterday that this has been extended to NZ (awesome!).

However installing it last night I have a weird behaviour and don't know where to begin on de-bugging.

It searches and loads a stream fine, however each HLS stream loads with only a 10sec track length and then simply stops playing at the end of it.

What should it be doing? Any idea what I'm doing wrong?

S

HLS streams need a plugin to play - what is your setup (os , LMS version, HLS plugin, player etc.) and which stream are you playing so I can also test.

s2kiwi
2019-01-21, 16:07
HLS streams need a plugin to play - what is your setup (os , LMS version, HLS plugin, player etc.) and which stream are you playing so I can also test.

Bingo - hadn't realised i needed an HLS plugin. Installed (and updated ffmpeg while there as a precaution), restarted and it's all going.
Thanks mate - this will earn me good points at home as my wife has wanted radio to work again ever since iHeartRadio took over the streaming of her favourite stations a couple of years ago.