Git Product home page Git Product logo

mopidy-tunein's Introduction

Mopidy-TuneIn

Latest PyPI version

CI build status

Test coverage

Mopidy extension for playing music from TuneIn. Listen to the world’s radio with 70,000 stations of music, sports and news streaming from every continent.

Acknowledgement and thanks to Marius Wyss for his original version of this extension and Brian Hornsby's XBMC plugin that was based on.

This product uses TuneIn but is not endorsed, certified or otherwise approved in any way by TuneIn. TuneIn is the registered trade mark of TuneIn Inc.

Installation

Install by running:

python3 -m pip install Mopidy-TuneIn

Or, if available, install the Debian/Ubuntu package from apt.mopidy.com.

Some radio streams may require additional audio plugins. These can be found in the gstreamer plugin packages for your system. For Mopidy v3.0.0 and later, these might include:
  • gstreamer1.0-plugins-ugly
  • gstreamer1.0-plugins-bad
  • gstreamer1.0-libav

Known issues

The following functionality is not yet implemented:
  • Playback of podcasts/shows.
  • User login and access to saved stations.

Configuration

You can add configuration for Mopidy-TuneIn to your Mopidy configuration file but it's not required:

[tunein]
timeout = 5000

The following configuration values are available:

  • tunein/enabled: If the TuneIn extension should be enabled or not. Defaults to true.
  • tunein/filter: Limit the search results. station, program or leave blank to disable filtering. Defaults to blank.
  • tunein/timeout: Milliseconds before giving up waiting for results. Defaults to 5000.

Project resources

Credits

mopidy-tunein's People

Contributors

digrix avatar djmattyg007 avatar foxfabi avatar jcass77 avatar jwilk avatar kingosticks avatar nolyn avatar wqrld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mopidy-tunein's Issues

User playlists

Allow users to login into their Tunein account and have access to a playlist of their saved stations (presets). This will require a partner ID to be issued by Tunein. The XBMC plugin was issued with a partner ID but that was some time ago and by radiotime rather than Tunein.

Stream not compatible

There are a couple of radio stations in TuneIn that I’d like to play on mopidy, but when I connect to them, TuneIn answers with a voice saying: “This stream is not compatible with this player”. (i.e. tunein:station:s6535)

Is there any enhancement I can do to listen to those radios?

Thanks

Radio stopped working in mopidy but works in tunein

Hi,

one of my preferred radio station stopped working in mopidy, while it is working from tunein.com browser.

This is the URI: tunein:station:s100963

From the browser ( https://tunein.com/radio/Radio-Antenna-1-Roma-1071-s100963/ ) it is playing, while from mopidy it generates this error:

2020-12-13 10:00:02,244 WARNING [889:TuneInBackend-9] mopidy.internal.http: Problem downloading 'http://a1-it.newradio.it/stream1': Not Available
2020-12-13 10:00:02,245 INFO [889:TuneInBackend-9] mopidy_tunein.actor: Unwrapping stream from URI ('http://a1-it.newradio.it/stream1') failed: error downloading URI 'http://a1-it.newradio.it/stream1'
2020-12-13 10:00:02,357 INFO [889:TuneInBackend-9] mopidy_tunein.tunein: TuneIn playlist request for http://a1-it.newradio.it/stream1 failed: 404 Client Error: Not Available for url: http://a1-it.newradio.it/stream1
2020-12-13 10:00:02,360 WARNING [889:Core-17] mopidy.core.tracklist: Track is not playable: tunein:station:s100963

"TypeError: expected string or buffer" exception while installi mopidy-tunein

Hi,

I got an exception trying to install mopidy-tunein on Raspbmc. Here is stackstrace:

Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 347, in run
root=options.root_path,
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 497, in install
and req.installed_version in distribute_req):
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/pkg_resources.py", line 2851, in contains
return self.specifier.contains(item, prereleases=True)
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/packaging/specifiers.py", line 651, in contains
item = parse(item)
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/packaging/version.py", line 41, in parse
return Version(version)
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/packaging/version.py", line 202, in init
match = self._regex.search(version)
TypeError: expected string or buffer

I use this command to install (tried sudo and no-sudo version):
pip install Mopidy-TuneIn

Is it possible that I miss some dependencies?

BBC Radio in new pimusicbox beta

Hi,
Wooter now has included gstreamer0.10-ffmpeg, and the latest version of your plugin in the base package (but still not gstreamer0.10-plugins-bad, which I've installed manually and contacted him about). BBC radio stations have been working perfectly in alpha 4, but in a beta released yesterday Tunein works but not any BBC stations.
Sorry, I don't know where to find the log for your plugin.
The webclient log shows this:

2014-05-11 10:12:28,338 - INFO Starting new HTTP connection (1): opml.radiotime.com
2014-05-11 10:12:29,226 - INFO Starting new HTTP connection (1): opml.radiotime.com
2014-05-11 10:12:30,153 - INFO Starting new HTTP connection (1): www.bbc.co.uk

Thanks

Retry on aborted connections

The radio stream stops playing when the connection is reset, and the log contains:

2015-12-08 05:29:42,998 - INFO 304 GET /musicbox_webclient/index.html (192.168.0.213) 13.42ms
2015-12-08 05:29:43,164 - INFO 304 GET /mopidy/mopidy.min.js (192.168.0.213) 11.70ms
2015-12-08 05:29:53,476 - INFO Starting new HTTP connection (1): opml.radiotime.com
2015-12-08 05:30:29,771 - INFO TuneIn API request for Tune.ashx failed: ('Connection aborted.', error(104, 'Connection reset by peer'))
2015-12-08 05:30:29,775 - ERROR Failed to tune station id s225233
2015-12-08 05:30:29,779 - WARNING Track is not playable: tunein:station:s225233
2015-12-08 05:30:39,838 - INFO Starting new HTTP connection (2): opml.radiotime.com
2015-12-08 05:30:42,126 - INFO 200 GET / (127.0.0.1) 42.55ms
2015-12-08 05:30:43,962 - WARNING Element doesn't implement handling of this stream. Please file a bug.

It might be possible to have Mopidy-TuneIn retry a couple of times before giving up, which should make it much more robust.

pydora follows a two-pronged strategy of retrying connections at least once, and also handling specific HTTP-related exceptions with the time between retries increasing exponentially.

It seems to be working well for the Mopidy-Pandora backend and I haven't had any connection issues since - not sure if it can be ported.

cdn-profiles.tunein.com uri over https

Hello

I use mopidy-iris over https.
Station image is not loaded, error:

Mixed Content: The page at 'https://*****.b-la.fr/iris/service-worker.js' was loaded over HTTPS, but requested an insecure resource 'http://cdn-profiles.tunein.com/s112350/images/logoq.jpg'. This request has been blocked; the content must be served over HTTPS.

Is it possible to provide the tunein station thumbail url in https to ensure compatibility?

Exemple:
Must be: https://cdn-profiles.tunein.com/s112350/images/logoq.jpg

Another exemple with mopidy-youtube, thumbail works, logo url is something like;
https://i.ytimg.com/vi/-zZbkPnBtS8/hqdefault.jpg

Thanks

Mopidy crashes

After installing this, my mopidy crashes:

2015-06-28 12:26:17,289 ERROR [10848:MainThread] mopidy.commands: Uncaught exception Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/mopidy/commands.py", line 274, in run backends = self.start_backends(config, backend_classes, audio) File "/usr/lib/python2.7/dist-packages/mopidy/commands.py", line 352, in start_backends config=config, audio=audio).proxy() File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 93, in start obj = cls(_args, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/mopidy_radio_de/actor.py", line 48, in **init** proxy=proxy) File "/usr/local/lib/python2.7/dist-packages/mopidy_radio_de/api.py", line 57, in **init** if len(proxy): TypeError: object of type 'NoneType' has no len() 2015-06-28 12:26:17,300 INFO [10848:MainThread] mopidy.commands: Stopping Mopidy frontends 2015-06-28 12:26:17,305 INFO [10848:MainThread] mopidy.commands: Stopping Mopidy core 2015-06-28 12:26:17,308 INFO [10848:MainThread] mopidy.commands: Stopping Mopidy backends

Mebus

Station Playback not working on all system

Hello,

I'm not sure this is a bug, but I didn't find a solution for it so I would like your help on the matter.

I have two setups running on my local network
One, let's call it x86

Executable: /usr/bin/mopidy
Platform: Linux-5.8.0-48-generic-x86_64-with-glibc2.32
Python: CPython 3.8.6 from /usr/lib/python3.8
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
Mopidy-ALSAMixer: 2.0.0 from /usr/local/lib/python3.8/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  setuptools: 49.3.1 from /usr/lib/python3/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
  pyalsaaudio: 0.9.0 from /usr/local/lib/python3.8/dist-packages
Mopidy-Podcast: 3.0.0 from /usr/local/lib/python3.8/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  cachetools: 4.2.0 from /usr/local/lib/python3.8/dist-packages
  setuptools: 49.3.1 from /usr/lib/python3/dist-packages
  uritools: 3.0.0 from /usr/local/lib/python3.8/dist-packages
Mopidy-MusicBox-Webclient: 3.1.0 from /usr/local/lib/python3.8/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  setuptools: 49.3.1 from /usr/lib/python3/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
Mopidy-Podcast-iTunes: 3.0.0 from /usr/local/lib/python3.8/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  setuptools: 49.3.1 from /usr/lib/python3/dist-packages
  requests: 2.23.0 from /usr/lib/python3/dist-packages
  Mopidy-Podcast: 3.0.0 from /usr/local/lib/python3.8/dist-packages
    Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
    Pykka: 2.0.3 from /usr/lib/python3/dist-packages
    cachetools: 4.2.0 from /usr/local/lib/python3.8/dist-packages
    setuptools: 49.3.1 from /usr/lib/python3/dist-packages
    uritools: 3.0.0 from /usr/local/lib/python3.8/dist-packages
Mopidy-TuneIn: 1.0.0 from /usr/local/lib/python3.8/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  requests: 2.23.0 from /usr/lib/python3/dist-packages
  setuptools: 49.3.1 from /usr/lib/python3/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
Mopidy-MPD: 3.1.0 from /usr/local/lib/python3.8/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  setuptools: 49.3.1 from /usr/lib/python3/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
GStreamer: 1.18.0.0 from /usr/lib/python3/dist-packages/gi
  Detailed information: 
    Python wrapper: python-gi 3.38.0
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

And another one, let's call it Pi

Executable: /usr/bin/mopidy
Platform: Linux-5.10.17+-armv6l-with-debian-10.9
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
Mopidy-TuneIn: 1.1.0 from /usr/lib/python3/dist-packages
Mopidy-MusicBox-Webclient: 3.1.0 from /usr/local/lib/python3.7/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
  setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Mopidy-MPD: 3.1.0 from /usr/lib/python3/dist-packages
Mopidy-ALSAMixer: 2.0.1 from /usr/local/lib/python3.7/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  pyalsaaudio: 0.9.0 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
  setuptools: 40.8.0 from /usr/lib/python3/dist-packages
mopidy-raspberry-gpio: 1.0.2 from /usr/local/lib/python3.7/dist-packages
  Pykka: 2.0.3 from /usr/lib/python3/dist-packages
  Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
  setuptools: 40.8.0 from /usr/lib/python3/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
  Detailed information: 
    Python wrapper: python-gi 3.30.4
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

On the x86 installation, I'm able to playblack the tunein:station:s34682 without issue, but on the Pi I got the following messages from the log

Apr  8 18:45:08 mopidy[418]: WARNING  [TuneInBackend-6] mopidy.internal.http Download of 'http://live.wostreaming.net/direct/ppm-jazz24mp3-ibc1?source=TuneIn&gdpr_consent=CPEPdoXPEPdoXAcABBENBUCgAAAAAH_AACiQAAAPVAAAAQIAACAAECCABIAAAAAAAAAAEAAAAAAAAAAADAAAAAAIAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAACAAAAAAAAAAAAAAQAAAAAAAAAAAAABAAAAWignkrAEou9jTCEMosAKBR_RUYCJUggWBkAAA.YAAAD_gAAAAA&gdpr=1' failed due to download taking more than 4.999s
Apr  8 18:45:08 mopidy[418]: INFO     [TuneInBackend-6] mopidy_tunein.actor Unwrapping stream from URI ('http://live.wostreaming.net/direct/ppm-jazz24mp3-ibc1?source=TuneIn&gdpr_consent=CPEPdoXPEPdoXAcABBENBUCgAAAAAH_AACiQAAAPVAAAAQIAACAAECCABIAAAAAAAAAAEAAAAAAAAAAADAAAAAAIAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAACAAAAAAAAAAAAAAQAAAAAAAAAAAAABAAAAWignkrAEou9jTCEMosAKBR_RUYCJUggWBkAAA.YAAAD_gAAAAA&gdpr=1') failed: error downloading URI 'http://live.wostreaming.net/direct/ppm-jazz24mp3-ibc1?source=TuneIn&gdpr_consent=CPEPdoXPEPdoXAcABBENBUCgAAAAAH_AACiQAAAPVAAAAQIAACAAECCABIAAAAAAAAAAEAAAAAAAAAAADAAAAAAIAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAACAAAAAAAAAAAAAAQAAAAAAAAAAAAABAAAAWignkrAEou9jTCEMosAKBR_RUYCJUggWBkAAA.YAAAD_gAAAAA&gdpr=1'
Apr  8 18:45:09 mopidy[418]: ERROR    [MainThread] mopidy.audio.gst GStreamer error: Server sent bad data.

Could you help me pinpoint the issue ?

Thank you for your help

How to install other plugins? (Gstreamer)

I'm pretty much a python noobie. You say some streams will require other plugins....how do I know if I'm using a stream that does, and how do I add those plugins?

Better Searching

Tunein allows filtering of search results with the filter query param but I'm not sure how this works.

Lost ability to browse stations

After performing a 'mopidy local clear' & 'mopidy local scan' lost the ability to browse TuneIn stations. Tried uninstalling and installing mopidy-tunein but browse only shows "Trending" under Directories/Files

Metadata-Version: 1.1
Name: Mopidy-TuneIn
Version: 0.2.2

Backend hangs when HTTP address fails

Hello,

Browse (with MusicBox) to TuneIn-Music-Bollywood and try to play Bollywoodradio (Berlin)
This causes the MopdyServer to hang for several minutes, trying to load http://radio.bollywoodradio.de (which does not exists). Meanwhile no operation is possible, even restart of mopidy is stalled.

This occurs with a lot of stations.

I have mopidy 2.0 an the latest TuneIn Extension.

Here's the log starting from mopidy restart until the first position where it hangs:

2016-06-14 13:10:34,083 INFO [22230:Audio-2] mopidy.audio.actor: Audio output set to "autoaudiosink"
2016-06-14 13:10:34,114 INFO [22230:SomaFMBackend-4] urllib3.connectionpool: Starting new HTTPS connection (1): api.somafm.com
2016-06-14 13:10:34,228 INFO [22230:MainThread] mopidy.local.library: Loaded 103 local tracks using json
2016-06-14 13:10:35,107 INFO [22230:SomaFMBackend-4] mopidy_somafm.somafm: Loaded 33 SomaFM channels
2016-06-14 13:10:35,110 INFO [22230:MainThread] mopidy.commands: Starting Mopidy core
2016-06-14 13:10:35,173 INFO [22230:MainThread] mopidy.commands: Starting Mopidy frontends: MpdFrontend, HttpFrontend
2016-06-14 13:10:35,177 INFO [22230:MainThread] mopidy.mpd.actor: MPD server running at [::ffff:127.0.0.1]:6600
2016-06-14 13:10:35,183 INFO [22230:HttpFrontend-13] mopidy.http.actor: HTTP server running at [::ffff:192.168.2.4]:6680
2016-06-14 13:10:35,184 INFO [22230:MainThread] mopidy.commands: Starting GLib mainloop
2016-06-14 13:10:35,606 INFO [22230:TuneInBackend-9] urllib3.connectionpool: Starting new HTTP connection (1): opml.radiotime.com
2016-06-14 13:10:47,263 INFO [22230:MainThread] mopidy.commands: GLib mainloop got SIGTERM. Exiting...
2016-06-14 13:10:47,265 INFO [22230:MainThread] mopidy.commands: Stopping Mopidy frontends
2016-06-14 13:10:47,277 INFO [22230:MainThread] mopidy.commands: Stopping Mopidy core
2016-06-14 13:10:47,281 INFO [22230:MainThread] mopidy.commands: Stopping Mopidy backends
2016-06-14 13:10:47,297 INFO [22230:MainThread] mopidy.commands: Stopping Mopidy audio
2016-06-14 13:10:47,301 INFO [22230:MainThread] mopidy.commands: Stopping Mopidy mixer
2016-06-14 13:10:48,354 INFO [22308:MainThread] mopidy.main: Starting Mopidy 2.0.0
2016-06-14 13:10:48,535 INFO [22308:MainThread] mopidy.config: Loading config from builtin defaults
2016-06-14 13:10:48,544 INFO [22308:MainThread] mopidy.config: Loading config from /etc/mopidy/mopidy.conf
2016-06-14 13:10:48,549 INFO [22308:MainThread] mopidy.config: Loading config from command line options
2016-06-14 13:10:48,741 INFO [22308:MainThread] mopidy.main: Enabled extensions: local-sqlite, mpd, http, stream, m3u, youtube, somafm, softwaremixer, file, musicbox_webclient, local, tunein
2016-06-14 13:10:48,742 INFO [22308:MainThread] mopidy.main: Disabled extensions: none
2016-06-14 13:10:48,767 WARNING [22308:MainThread] root: pafy: youtube-dl not found; falling back to internal backend. This is not as well maintained as the youtube-dl backend. To hide this message, set the environmental variable PAFY_BACKEND to "internal".
2016-06-14 13:10:49,018 INFO [22308:MainThread] mopidy.commands: Starting Mopidy mixer: SoftwareMixer
2016-06-14 13:10:49,023 INFO [22308:MainThread] mopidy.commands: Starting Mopidy audio
2016-06-14 13:10:49,029 INFO [22308:MainThread] mopidy.commands: Starting Mopidy backends: YouTubeBackend, SomaFMBackend, StreamBackend, M3UBackend, FileBackend, LocalBackend, TuneInBackend
2016-06-14 13:10:49,072 INFO [22308:SomaFMBackend-4] urllib3.connectionpool: Starting new HTTPS connection (1): api.somafm.com
2016-06-14 13:10:49,086 INFO [22308:Audio-2] mopidy.audio.actor: Audio output set to "autoaudiosink"
2016-06-14 13:10:49,211 INFO [22308:MainThread] mopidy.local.library: Loaded 103 local tracks using json
2016-06-14 13:10:49,982 INFO [22308:SomaFMBackend-4] mopidy_somafm.somafm: Loaded 33 SomaFM channels
2016-06-14 13:10:49,987 INFO [22308:MainThread] mopidy.commands: Starting Mopidy core
2016-06-14 13:10:50,057 INFO [22308:MainThread] mopidy.commands: Starting Mopidy frontends: MpdFrontend, HttpFrontend
2016-06-14 13:10:50,063 INFO [22308:MainThread] mopidy.mpd.actor: MPD server running at [::ffff:127.0.0.1]:6600
2016-06-14 13:10:50,070 INFO [22308:HttpFrontend-13] mopidy.http.actor: HTTP server running at [::ffff:192.168.2.4]:6680
2016-06-14 13:10:50,071 INFO [22308:MainThread] mopidy.commands: Starting GLib mainloop
2016-06-14 13:10:50,601 INFO [22308:TuneInBackend-9] urllib3.connectionpool: Starting new HTTP connection (1): opml.radiotime.com
2016-06-14 13:12:04,667 INFO [22308:TuneInBackend-9] urllib3.connectionpool: Starting new HTTP connection (1): radio.bollywoodradio.de

Better support for station/show logos

Currently only support station logos but should be able to more easily get show logos with this fun snippet (from https://code.google.com/p/radiotime-tools/source/browse/trunk/clients/js/src/js/radiotime.js)

logoSizes: {"square": "q", "small": "s", "normal": ""}, 
        logoFormats: {"png":"png","gif":"gif"},
        getLogoUrl: function(guide_id, logoSize, logoFormat) {
                var logoSizeCode = RadioTime.logoSizes[logoSize] || "";
                var logoFormat = RadioTime.logoFormats[logoFormat] || "png";
                return "http://radiotime-logos.s3.amazonaws.com/" + guide_id + logoSizeCode + "." + logoFormat;
        },

Backend tries to play m3u instead of mp3

This one is working fine:

DEBUG    2015-12-25 17:26:06,700 [1402:TuneInBackend-9] mopidy_tunein.tunein
  Tuning station id s96162
DEBUG    2015-12-25 17:26:06,704 [1402:TuneInBackend-9] mopidy_tunein.tunein
  TuneIn request: http://opml.radiotime.com/Tune.ashx?render=json&id=s96162
INFO     2015-12-25 17:26:06,722 [1402:TuneInBackend-9] urllib3.connectionpool
  Resetting dropped connection: opml.radiotime.com
DEBUG    2015-12-25 17:26:07,116 [1402:TuneInBackend-9] urllib3.connectionpool
  "GET /Tune.ashx?render=json&id=s96162 HTTP/1.1" 200 203
DEBUG    2015-12-25 17:26:07,131 [1402:TuneInBackend-9] mopidy_tunein.actor
  Looking up URI: http://www.radionetz.de:8000/purefm-bln.mp3.
DEBUG    2015-12-25 17:26:07,880 [1402:TuneInBackend-9] mopidy.backend
  Backend translated URI from tunein:station:s96162 to http://www.radionetz.de:8000/purefm-bln.mp3
DEBUG    2015-12-25 17:26:07,897 [1402:Audio-3] mopidy.audio.gst
  Got source-setup: element=/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin1/GstSoupHTTPSrc:source (__main__.GstSoupHTTPSrc)

... whereas this one (RTBF Pure FM)

DEBUG    2015-12-25 17:22:33,796 [1402:TuneInBackend-9] mopidy_tunein.tunein
  TuneIn request: http://opml.radiotime.com/Tune.ashx?render=json&id=s44244
DEBUG    2015-12-25 17:22:34,018 [1402:TuneInBackend-9] urllib3.connectionpool
  "GET /Tune.ashx?render=json&id=s44244 HTTP/1.1" 200 256
DEBUG    2015-12-25 17:22:34,035 [1402:TuneInBackend-9] mopidy_tunein.actor
  Looking up URI: http://purefm.ice.rtbf.be/purefm.mp3.m3u.
DEBUG    2015-12-25 17:22:35,723 [1402:TuneInBackend-9] mopidy.backend
  Backend translated URI from tunein:station:s44244 to http://purefm.ice.rtbf.be/purefm.mp3.m3u
DEBUG    2015-12-25 17:22:35,745 [1402:Audio-3] mopidy.audio.gst
  Got source-setup: element=/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source (__main__.GstSoupHTTPSrc)

consequently gstreamer complains that it can't handle 'text/uri-list'

DEBUG    2015-12-25 17:22:35,900 [1402:HttpServer] mopidy.http.handlers
  Received WebSocket message from 192.168.100.26: u'{"method":"core.playback.get_current_tl_track","jsonrpc":"2.0","id":28}'
DEBUG    2015-12-25 17:22:35,917 [1402:HttpServer] mopidy.http.handlers
  Received WebSocket message from 192.168.100.26: u'{"method":"core.playback.get_time_position","jsonrpc":"2.0","id":29}'
DEBUG    2015-12-25 17:22:35,935 [1402:Audio-3] mopidy.audio.actor
  Position query failed
DEBUG    2015-12-25 17:22:36,670 [1402:MainThread] mopidy.audio.gst
  Got missing-plugin message: description:text/uri-list decoder

When I download the m3u 'by hand' it looks fine:

iMac-van-Beheerder:tmp marc$ lwp-download 'http://purefm.ice.rtbf.be/purefm.mp3.m3u'
Saving to 'purefm.mp3.m3u'...
42 bytes received                                                           
iMac-van-Beheerder:tmp marc$ cat purefm.mp3.m3u 
http://ice19.infomaniak.ch:80/purefm.mp3

I am using:

pi@mps ~ $ dpkg -s mopidy-tunein
Package: mopidy-tunein
Status: install ok installed
Priority: optional
Section: sound
Installed-Size: 88
Maintainer: Stein Magnus Jodal <[email protected]>
Architecture: all
Version: 0.2.2-2
Depends: python (>= 2.7~), python-requests, python-pkg-resources, python (<< 2.8), python-pykka, mopidy (>= 1.0)
Description: Mopidy extension for playing music from TuneIn

Browsing 'by language'

The tunine API is generally inconsistent across categories but browsing by language is totally wacky. It uses filters rather than a guide_id like everything else.
e.g. http://opml.radiotime.com/Browse.ashx?c=lang&filter=l169

It might be easier in all cases if the Tunein API wrapper was to extract navigation info from the URL field instead of using prior knowledge about each category's data format. In any case, won't bother supporting "by language" unless it's asked for.

tunein extensions makes mopidy unusable

I opened mopidy issue #773 and it helped when I reflashed the RPi sd card. Uninstalling and reinstalling mopidy didn't help.

After flashing the sd card I installed mopidy. It worked great. I installed spotify extension and it worked too. I installed TuneIn extension and mopidy stopped working after reboot. It didn't load any extensions and the state was just like the first time I tried to install mopidy (mopidy issue #773) So it seems TuneIn extensions does something to mopidy...

RPi didn't have pip so I installed it before installing TuneIn
sudo apt-get install python-setuptools
sudo easy_install pip

Buddha Hits 'not supported'

Hi,

First thanks for your work.
I recently discover mopidy and the tunein package. i tried and look at a solution to get my tunein favorite station to work via mopidy-tunein package without success.
I would believe the problem is similar to the one from 2014 BBC radio but I do not have the skills to verify this assumption.

iIf you use the search section and enter 'Buddha hits' in modipy-tunein you'd find the radio I am talking about at the bottom of the list with a 'no compatible stream' header.

Is there anything I could do to fix this?

Thanks a lot for your support.

BBC Radio Stations crash mopidy

After listening to any BBC radio station (e.g. BBC Radio 4) through TuneIn (on pimusicbox) for about an hour, mopidy crashes. There problem is only with BBC stations, as others work indefinitely.
I would give you a logfile, but I still don't quite know how to do that!

Network Ports

Hi,

I have installed Tunein and it sounds to be really great. Hope authentication is coming soon!

Which networks ports are used to communicate to outside (I mean the tunein service)? Which protocol is used? TCP/UDP?

I have tried netstat but I didn't find something related to tunein. In fact, I will restrict ports with iptables, but I don't want to block ports used by this extension...

Stations that start with an advertisement

Hello,
Trying to listen to 98.7 WFMT (a Chicago Classical station), and when playing through my iPhone, through the TuneIn app, there is a 20 second advert before the station begins playing. When I play WFMT (tunein:station:s28807) through pimusicbox, I hear the 20 second advert, but that's all. It doesn't get to the actual station. Is the problem because of the advert?

'Malformed' playlists cause 'list index out of range'

Originally reported by @willwach in mopidy/mopidy#853:

Same problem for most streams of RBB.
Newest version of "pi musicbox" 0.5.2
With debug messages.

www.inforadio.de
2015-01-02 09:40:45,604 - INFO Starting new HTTP connection (1): opml.radiotime.com
2015-01-02 09:40:47,661 - INFO Starting new HTTP connection (1): www.inforadio.de
2015-01-02 09:40:48,182 - ERROR GStreamer encountered a general supporting library error. Debug message: /usr/local/lib/python2.7/dist-packages/mopidy/audio/playlists.py(212): _event (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin6/GstDecodeBin2:decodebin23/mopidy+audio+playlists+UriListElement:mopidy+audio+playlists+urilistelement2:
: list index out of range

www.fritz.de
2015-01-02 09:41:29,276 - INFO Starting new HTTP connection (1): opml.radiotime.com
2015-01-02 09:41:30,850 - INFO Starting new HTTP connection (1): www.fritz.de
2015-01-02 09:41:35,095 - ERROR GStreamer encountered a general supporting library error. Debug message: /usr/local/lib/python2.7/dist-packages/mopidy/audio/playlists.py(212): _event (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin8/GstDecodeBin2:decodebin24/mopidy+audio+playlists+UriListElement:mopidy+audio+playlists+urilistelement3:
: list index out of range

www.radioeins.de
2015-01-02 09:42:17,784 - INFO Starting new HTTP connection (1): opml.radiotime.com
2015-01-02 09:42:18,541 - INFO Starting new HTTP connection (1): www.radioeins.de
2015-01-02 09:42:19,029 - ERROR GStreamer encountered a general supporting library error. Debug message: /usr/local/lib/python2.7/dist-packages/mopidy/audio/playlists.py(212): _event (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin11/GstDecodeBin2:decodebin26/mopidy+audio+playlists+UriListElement:mopidy+audio+playlists+urilistelement5:
: list index out of range

The 'Fritz vom rbb' stream is reported by mopidy-tunein as 'malformed' ASX and this error case somehow leaves the audio pipeline in a mess. Need to fix the parsing and understand how the error managed to leave such a mess behind.

Allow user to specify their location for local radio

Add a config setting to specify the location to use for "local" radio. TuneIn supports a latlon parameter containing a comma separated latitude-longitude pair i.e. http://opml.radiotime.com/Browse.ashx?c=local&latlon=37,118.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.