Skip to content

Backend tries to play m3u instead of mp3 #25

@marrem

Description

@marrem

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 <stein.magnus@jodal.no>
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions