Project

General

Profile

Feature #698

Please consider adding auto-decoding & playing Tunein.com radio streams

Added by Jim Turner about 7 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Minor
Assignee:
-
Category:
-
Target version:
-
Start date:
January 27, 2017
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

Tunein.com is a clearinghouse of many broadcast and online radio stations that provides a website and real-time streaming via one's web browser. In order to stream stations on Tunein.com via one's choice of alternate media players, one must manually dig through the html, locate a certain tag ("StreamUrl") that points to another URL which contains one or more actual "streaming URLs" and other stream information, select the best one, and manually paste it into their choice of media player. There is a python script that will handle this fetching process from a command line that I've used for this purpose, but have forgotten where it came from, called "getstream.py". I've written a new Perl module called Tunein::Streams that provides this capability to a program / script. Example Tunein.com station URL: http://tunein.com/radio/1003-Jack-FM-s34942/ for which the best streaming URL that Audacious needs is: http://15363.live.streamtheworld.com/KJKKFM_SC

What I'm interested in is incorporating this url-parsing capability into Audacious allowing one to simply add the station's Tunein.com url to Audacious and have it automatically find and launch the best stream automatically by incorporating this logic into the existing "playlist" capabilities. I've successfully got it "hacked" and working (see attached files).

It took surprisingly little effort to get working (only a few changes to a single source file: libaudcore/playlist-files.cc), as I leveredged my own "Tunein::Streams" module and a tiny Perl program I wrote fetch, parse, and create a temporary single-line .pls playlist file which contains the proper stream for Audacious. I'm pretty certain though that you could come up with a much better way to do this without too much difficulty and without separate Perl code, so I'm asking you to consider looking into it for a future release. The Perl module is located here: http://search.cpan.org/~turnerjw/Tunein-Streams-1.00/lib/Tunein/Streams.pm

Thanks!

Jim

playlist-files.diff (3.17 KB) playlist-files.diff Patches to use helper script for tunein.com urls Jim Turner, January 27, 2017 21:52

History

#1 Updated by John Lindgren about 7 years ago

  • Status changed from New to Rejected

No. Though Audacious is meant to be "versatile" this does not include parsing every random website to extract stream URLs.

Also available in: Atom PDF