Page 1 of 8

Tune In radio

PostPosted: Mon Jan 30, 2012 12:56 pm
by zip
Web Resource audio plugin

Example URL:

  Code:
http://tunein.com/radio/London-United-Kingdom-r100780/?qlc=1


It won't add all the stations, only those supporting mp3. There is a lot of playlists parsing and the plugin can be enhanced when Serviio itself handles that.

30/1/2012 Added
5/9/2012 Updated to match website changes
9/9/2012 Updated to match streams storage
6/10/2012 Updated station URL matching
7/10/2012 Added support for Windows streams
19/12/2012 Added support for AAC streams (Serviio 1.1 required)
22/0/2013 Uploaded fixed version (by jav)
15/09/2013 Fixed to match website changes
15/02/2014 Added support for search queries
31/03/2014 Fixed parsing
31/05/2014 Fixed parsing
1/1/2016 Fixed by jbh50
30/03/2019 Fixed for new structure

Re: Tune In radio

PostPosted: Thu Feb 16, 2012 1:34 am
by mkkyah
Hi Zip,
I have added a few Tune In and Shoutcast entries to serviio, but I'm getting "unsupported data" on PS3. Any idea?

edit:found the solution, thanks:
viewtopic.php?f=5&t=4786&hilit=ps3+live+stream#p32963

Re: Tune In radio

PostPosted: Sat Mar 24, 2012 11:08 pm
by arjanmol
Hi,

I am trying to use the Tunein plugin, but without succes. Below a copy of some lines from the log:
  Code:
2012-03-24 23:54:21,137 INFO  [WebServer] Socket buffer set to 65535 bytes
2012-03-24 23:54:21,168 INFO  [Device] Created UPnP Device with UUID: 2274a5bf-ce63-3ec5-bef9-aa09883fff29, bound address: 192.168.1.67
2012-03-24 23:54:21,418 INFO  [PluginCompilerThread] Looking for plugins at C:\Program Files\Serviio\bin\..\plugins
2012-03-24 23:54:21,449 INFO  [PluginCompilerThread] Started looking for plugins
2012-03-24 23:54:23,742 INFO  [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2012-03-24 23:54:24,257 INFO  [WebServer] WebServer starting on port 8895
2012-03-24 23:54:24,382 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2012-03-24 23:54:24,398 INFO  [EventDispatcher] Starting EventDispatcher
2012-03-24 23:54:24,398 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2012-03-24 23:54:24,429 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface net4 (Atheros AR5B97 Wireless Network Adapter) and address 192.168.1.67, timeout = 0
2012-03-24 23:54:24,444 INFO  [RendererSearchSender] Searching for Renderer devices
2012-03-24 23:54:24,444 INFO  [RendererExpirationChecker] Starting RendererExpirationChecker
2012-03-24 23:54:28,393 INFO  [PluginCompilerThread] Added Web Resouce plugin Tune In (TuneIn.groovy)
2012-03-24 23:54:29,485 INFO  [ContentDirectoryDefinitionParser] Parsing ContentDirectory definition
2012-03-24 23:54:30,296 INFO  [BrowsingCategoriesMessages] Loaded browsing categories message bundle for locale: en
2012-03-24 23:54:51,539 INFO  [FeedUpdaterThread] Started looking for information about online resources
2012-03-24 23:54:51,586 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2012-03-24 23:54:52,897 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2012-03-24 23:55:05,299 INFO  [ServiioConsole] Starting Serviio Console
2012-03-24 23:55:09,710 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Cannot parse resource from http://tunein.com/radio/London-United-Kingdom-r100780/?qlc=1. Message: Error during feed parsing, provided URL probably doesn't point to a valid RSS/Atom feed. Message: Invalid XML: Error on line 67: The entity name must immediately follow the '&' in the entity reference.
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:177)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:184)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:158)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:95)


So the plugin is detected correctly when starting Serviio, but it gives errors with reading the url. Any suggestions?

Re: Tune In radio

PostPosted: Sun Mar 25, 2012 6:59 pm
by zip
you didn't add it as a Web resource URL ( you used rss/atom feed type)

Re: Tune In radio

PostPosted: Tue Mar 27, 2012 6:51 pm
by arjanmol
Thanks, that did it! I am only wondering why your link results in available stations, while for example the following link does not work at all:
http://tunein.com/radio/Dirksland-Nethe ... 397/?qlc=1

Re: Tune In radio

PostPosted: Mon Apr 23, 2012 4:22 pm
by sito
Hello I am new to this forum and use of Serviio, I am a noob of dlna, I tried this program because it seemed simple but I realize that a lot of options.
So, in the case of TuneIn, I'm forced to enter a radio station at a time or I can enter a list of stations obtained through research?
What should the link?
I tried this http://tunein.com/search/?query=radio+italiane but how can I put it on properly Serviio?
I figure I should get a valid link to the rss feed but I dont know a way to do it.
I'm sorry but I am totally noob.

Re: Tune In radio

PostPosted: Mon Apr 23, 2012 4:50 pm
by zip
the URL might work. Just add it like this to the console, select Web Resource type, store the plugin to your plugins folder and it should work.

Re: Tune In radio

PostPosted: Mon Apr 23, 2012 6:47 pm
by sito
I did not realize I had to select the resource web, I put the rss feed.
Thank you.

Re: Tune In radio

PostPosted: Mon Apr 23, 2012 11:22 pm
by sito
I thought it worked but I get this error serviio.log:

  Code:
java.io.IOException: Cannot parse resource from http://tunein.com/search/?query=radio+italiane&filter=!p:. Message: No plugin for web resource http://tunein.com/search/?query=radio+italiane&filter=!p: has been found.
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:177)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:184)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:158)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:95)


The plugin is in the plugins folder, but the log says that there is no plugin for that resource.
What did I do wrong?
Maybe it only works if I point to a specific station?

Re: Tune In radio

PostPosted: Tue Apr 24, 2012 12:22 pm
by zip
the plugin only allows http://tunein.com/radio/xxxxxxx types of URL's. maybe it's wrong, I'm not sure. You could edit the plugin file and replace

  Code:
final VALID_FEED_URL = '^(?:https?://)?(?:www\\.)?tunein\\.com/radio/.+'


with

  Code:
final VALID_FEED_URL = '^(?:https?://)?(?:www\\.)?tunein\\.com/.+'


Then restart Serviio and try again.

Re: Tune In radio

PostPosted: Tue Apr 24, 2012 11:17 pm
by sito
It should be better already.
Now come the lists with the radio depending on the search term that is done, however, many radio stations are not listed, I see it especially with the Japanese radio http://tunein.com/search/?query=japan them there are at least twenty radio but on TV I only come out four, with the Italian radio and leaving me only five.
The other issue concerns the streaming file, there is a long time to load the station and once loaded the audio feels jerky.
The light of the wifi stick remains fixed for most of the time so I guess that does not transmit much audio stream, as if listening from PC works perfectly.
The idea of ​​having lists of radio stations, even if the TV is still made ​​to watch videos, does not seem so bad, is always something more that enriches this software.
Such as lists of videos for youtube.

Re: Tune In radio

PostPosted: Wed Apr 25, 2012 12:30 pm
by zip
sito wrote: many radio stations are not listed

read the first post of his topic

Re: Tune In radio

PostPosted: Wed Apr 25, 2012 12:43 pm
by sito
Ok.

Re: Tune In radio

PostPosted: Tue May 01, 2012 11:54 pm
by kappclark
Having alot of fun with this new feature..

Just found that a search by zip code results in stations closeby

http://tunein.com/radio/search/05301/ gives stations in the Southern VT area..

wonder if you can do compound searches ..

Nice job !

Re: Tune In radio

PostPosted: Thu May 03, 2012 11:43 pm
by piccolo
Great Plug-inn.

I am trying to get 94.7 WMAS to work (USA)

http://www.947wmas.com/article.asp?id=538543

is this possible?

Re: Tune In radio

PostPosted: Sun May 06, 2012 10:01 pm
by kappclark
Not all the stations seem to appear... WKVT in Brattleboro and WTSA do not appear for Brattleboro ...

Re: Tune In radio

PostPosted: Sun May 06, 2012 10:24 pm
by zip
kappclark wrote:Not all the stations seem to appear... WKVT in Brattleboro and WTSA do not appear for Brattleboro ...

see the original post

Re: Tune In radio

PostPosted: Wed May 09, 2012 1:39 am
by kappclark
zip wrote:
kappclark wrote:Not all the stations seem to appear... WKVT in Brattleboro and WTSA do not appear for Brattleboro ...

see the original post


Yes - I got it . .. must be mp3

Re: Tune In radio

PostPosted: Sun Aug 19, 2012 8:58 pm
by kappclark
Has anyone tried this in the new 1.01 ? I cannot seem to get it to work..

Re: Tune In radio

PostPosted: Thu Aug 23, 2012 8:49 am
by themystical
kappclark wrote:Has anyone tried this in the new 1.01 ? I cannot seem to get it to work..

This doesn't work for me either with 1.01. It would be great if the original creator checked or updated this or alternatively if somebody could confirm that thia works for them in 1.01.