INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to use jriver for internet radio?  (Read 16646 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4276
How to use jriver for internet radio?
« on: August 13, 2015, 05:35:13 pm »

I still run a LMS (squeezebox) instance because my wife likes to use the radio and LMS makes that v easy by having a bbc iplayer plugin as well as providing a whole list of local & national (UK) radio stations. I would like to get rid of this and replace it with jriver however I am failing quite hard to work out how to do it.

The wiki gives me this link - http://wiki.jriver.com/index.php/Web_Media(Radio) - but it seems old as I don't see a "web radio" screen or any sort of master list of stations. I suppose this feature was removed at some point.

I can use Open URL to play a station (by grabbing the URL from LMS) and it seems to play ok.

Does this mean that the steps involved are

- manually grab all the relevant station URLs from LMS
- play each one and import it into the library
- tag it as a media subtype radio
- create some sort of "radio" group under audio
- add to theatre view/jremote as appropriate

Is there a better way to do this? something a bit less laborious would be ideal!

Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14497
  • I won! I won!
Re: How to use jriver for internet radio?
« Reply #1 on: August 13, 2015, 05:47:28 pm »

Here is the draft page on how to do it.  Not as easy at it could be but it works if you can find the streams you need

http://wiki.jriver.com/index.php/Connected_Media

Logged
JRiver CEO Elect

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: How to use jriver for internet radio?
« Reply #2 on: August 13, 2015, 05:55:01 pm »

You can also look under Audio - Connected Media for some various services. But they tend to play on their own, rather than becoming integrated into MC. Otherwise, you are correct, it is pretty much a manual process. jmone's link outlines the process.
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4276
Re:
« Reply #3 on: August 13, 2015, 05:56:08 pm »

Ah great, thanks. I wonder if I could script this? It must be possible to grab all the URLs from LMS, I could then just hit jriver with each one to load them up into the library.
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: How to use jriver for internet radio?
« Reply #4 on: August 13, 2015, 08:51:01 pm »

No idea how to script it. One thing I thought of doing was to create a fake album, then change the track names to the station names and paste the urls into the filename tags of the fake tracks. Or something like that. Not elegant, but may be easier than the standard method.  In the end, I did mine by hand. I also added a Internet Radio image as the cover art. A simple Add Radio Station option would be a nice addition to MC.
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14497
  • I won! I won!
Re: How to use jriver for internet radio?
« Reply #5 on: August 13, 2015, 09:18:24 pm »

Good Idea and it got me thinking and I had a quick play creating and importing a MPL file into MC.

The following works fine and imports it as an Audio File that you can then tag by hand (for Name, Coverart, Media Subtype etc):
Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="JRSidecar">
<Item>
<Field Name="Filename">http://shoutmedia.abc.net.au:10426/</Field>
</Item>
</MPL>

Unfortunately, for some reason you can not update any tags, eg the following just imports it the same as above.
Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="JRSidecar">
<Item>
<Field Name="Filename">http://shoutmedia.abc.net.au:10426/</Field>
<Field Name="Media Sub Type">Radio</Field>
<Field Name="Name">Triple J</Field>
</Item>
</MPL>

If I could work out why the other tag updating didn't work, It would be easy to write a little script to not only import the streams but correctly tag them up.

Thanks
Nathan
Logged
JRiver CEO Elect

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4276
Re: How to use jriver for internet radio?
« Reply #6 on: August 14, 2015, 05:11:53 am »

is importing an MPL the only way to programmatically load something into the library?

I was thinking it would be possible to do something like add such entries via a set of MCWS calls but I don't see anything like that in the wsdl though I notice it can call down to MCC and MCC has an import command...

not a big deal if it means generating some xml files instead mind you. I found http://yabb.jriver.com/interact/index.php?topic=78971.0 and http://yabb.jriver.com/interact/index.php?topic=82720.0 which seem to be on the same subject. I'll hack around with it at the weekend and see what I come up with.
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4276
Re: How to use jriver for internet radio?
« Reply #7 on: August 15, 2015, 06:21:54 am »

I worked out that squeezebox uses http://opml.radiotime.com/ which appears to be something provided by tunein.com

This provides a set of xml docs which describe a tree like structure that ultimately ends up in a set of links to some m3u files. It should therefore be possible to walk through that tree programmatically, convert them into MPL items & import them into jriver along with the relevant metadata.
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4276
Re: How to use jriver for internet radio?
« Reply #8 on: August 16, 2015, 03:52:47 pm »

It looks like this opml feed is resistant to a quick hacked up script without it descending into some serious unreadable xpath expressions & the source data seems like junk anyway, it's really quite an unstructured mess. It looks like I'll have to do it manually instead :(
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: How to use jriver for internet radio?
« Reply #9 on: August 17, 2015, 08:26:44 am »

I worked out that squeezebox uses http://opml.radiotime.com/ which appears to be something provided by tunein.com

This provides a set of xml docs which describe a tree like structure that ultimately ends up in a set of links to some m3u files. It should therefore be possible to walk through that tree programmatically, convert them into MPL items & import them into jriver along with the relevant metadata.

That looks pretty interesting.

Still thinking, but I'd think that would be kind of neat to integrate radiotime.com into MC.
Logged
Matt Ashland, JRiver Media Center

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4276
Re: How to use jriver for internet radio?
« Reply #10 on: August 17, 2015, 08:37:23 am »

That looks pretty interesting.

Still thinking, but I'd think that would be kind of neat to integrate radiotime.com into MC.
FWIW it is the sort of feed that works well enough with a human at the control. It looks to be an aggregation of various live feeds so gets a bit unstructured in places & is prone to dupes, as far as I can see parsing it programatically for an offline library load looks pointless. Integration of the live service into MC would be good though so that would certainly get a +1 from me.
Logged

dtc

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3125
Re: How to use jriver for internet radio?
« Reply #11 on: August 17, 2015, 09:30:40 am »

I believe radiotime is just an older name for TuneIn. TuneIn is widely available on phones and other devices, like Sonus, Roku, various TVs, Chromecast, PlayStation, etc. One drawback is the  low bitrate, either 32 KB or 64 KB and sometimes 96 KB for things I have tried.
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4276
Re: How to use jriver for internet radio?
« Reply #12 on: August 17, 2015, 09:48:05 am »

Yes it is tunein, radiotime.com redirects there. I haven't noticed low bitrates but it only gets used in as a kitchen radio in my setup, seems good enough for that.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: How to use jriver for internet radio?
« Reply #13 on: August 17, 2015, 09:55:43 am »

Well I only get 403 responses from http://opml.radiotime.com/ now.

So that party ended fast.
Logged
Matt Ashland, JRiver Media Center

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4276
Re: How to use jriver for internet radio?
« Reply #14 on: August 17, 2015, 11:09:35 am »

odd, still works for me (from multiple browsers on a machine that isn't logged into tunein in any way) but I see that's not exactly a service you'd want to build on if it's prone to going awol

Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14497
  • I won! I won!
Re: How to use jriver for internet radio?
« Reply #15 on: August 17, 2015, 04:07:01 pm »

Well I only get 403 responses from http://opml.radiotime.com/ now.

So that party ended fast.

I'm getting a 200
Logged
JRiver CEO Elect

crisnee

  • World Citizen
  • ***
  • Posts: 179
Re: How to use jriver for internet radio?
« Reply #16 on: October 06, 2015, 02:01:55 pm »

Why can't you incorporate tunein.com? They do have a free version, if that matters.
Logged
Pages: [1]   Go Up