Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend tries to play m3u instead of mp3 #25

Open
marrem opened this issue Dec 25, 2015 · 2 comments
Open

Backend tries to play m3u instead of mp3 #25

marrem opened this issue Dec 25, 2015 · 2 comments

Comments

@marrem
Copy link

marrem commented Dec 25, 2015

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
@kingosticks
Copy link
Owner

Are you running develop or the release?
On 25 Dec 2015 16:42, marrem [email protected] wrote:This one is working fine:

DEBUG 2015-12-25 17:26:06,700 [1402:TuneInBackend-9] mopidy_tuneintunein
Tuning station id s96162
DEBUG 2015-12-25 17:26:06,704 [1402:TuneInBackend-9] mopidy_tuneintunein
TuneIn request: http://opmlradiotimecom/Tuneashx?render=json&id=s96162
INFO 2015-12-25 17:26:06,722 [1402:TuneInBackend-9] urllib3connectionpool
Resetting dropped connection: opmlradiotimecom
DEBUG 2015-12-25 17:26:07,116 [1402:TuneInBackend-9] urllib3connectionpool
"GET /Tuneashx?render=json&id=s96162 HTTP/11" 200 203
DEBUG 2015-12-25 17:26:07,131 [1402:TuneInBackend-9] mopidy_tuneinactor
Looking up URI: http://wwwradionetzde:8000/purefm-blnmp3
DEBUG 2015-12-25 17:26:07,880 [1402:TuneInBackend-9] mopidybackend
Backend translated URI from tunein:station:s96162 to http://wwwradionetzde:8000/purefm-blnmp3
DEBUG 2015-12-25 17:26:07,897 [1402:Audio-3] mopidyaudiogst
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_tuneintunein
TuneIn request: http://opmlradiotimecom/Tuneashx?render=json&id=s44244
DEBUG 2015-12-25 17:22:34,018 [1402:TuneInBackend-9] urllib3connectionpool
"GET /Tuneashx?render=json&id=s44244 HTTP/11" 200 256
DEBUG 2015-12-25 17:22:34,035 [1402:TuneInBackend-9] mopidy_tuneinactor
Looking up URI: http://purefmicertbfbe/purefmmp3m3u
DEBUG 2015-12-25 17:22:35,723 [1402:TuneInBackend-9] mopidybackend
Backend translated URI from tunein:station:s44244 to http://purefmicertbfbe/purefmmp3m3u
DEBUG 2015-12-25 17:22:35,745 [1402:Audio-3] mopidyaudiogst
Got source-setup: element=/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source (__main__GstSoupHTTPSrc)

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

  Received WebSocket message from 19216810026: u'{"method":"coreplaybackget_current_tl_track","jsonrpc":"20","id":28}'
DEBUG    2015-12-25 17:22:35,917 [1402:HttpServer] mopidyhttphandlers
  Received WebSocket message from 19216810026: u'{"method":"coreplaybackget_time_position","jsonrpc":"20","id":29}'
DEBUG    2015-12-25 17:22:35,935 [1402:Audio-3] mopidyaudioactor
  Position query failed
DEBUG    2015-12-25 17:22:36,670 [1402:MainThread] mopidyaudiogst
  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://purefmicertbfbe/purefmmp3m3u'
Saving to 'purefmmp3m3u'
42 bytes received
iMac-van-Beheerder:tmp marc$ cat purefmmp3m3u 
http://ice19infomaniakch:80/purefmmp3

—Reply to this email directly or view it on GitHub.

@marrem
Copy link
Author

marrem commented Dec 25, 2015

Hi Nick,

I am running:

Mopidy: raspbian package
Mopidy-tunein: raspbian package
Mopidy-musicbox-webclient: dev version (cloned from github).

I am running Raspbian Jessie. I checked to see if there were updates for mopidy-tunein. But apt-get said 'already at latest version'. I am using the apt repository for Mopidy.

Regards,
Marc

Nick Steel [email protected] schreef op 25 december 2015 17:50:27 CET:

Are you running develop or the release?
On 25 Dec 2015 16:42, marrem [email protected] wrote:This one
is working fine:

DEBUG 2015-12-25 17:26:06,700 [1402:TuneInBackend-9]
mopidy_tuneintunein
Tuning station id s96162
DEBUG 2015-12-25 17:26:06,704 [1402:TuneInBackend-9]
mopidy_tuneintunein
TuneIn request: http://opmlradiotimecom/Tuneashx?render=json&id=s96162
INFO 2015-12-25 17:26:06,722 [1402:TuneInBackend-9]
urllib3connectionpool
Resetting dropped connection: opmlradiotimecom
DEBUG 2015-12-25 17:26:07,116 [1402:TuneInBackend-9]
urllib3connectionpool
"GET /Tuneashx?render=json&id=s96162 HTTP/11" 200 203
DEBUG 2015-12-25 17:26:07,131 [1402:TuneInBackend-9]
mopidy_tuneinactor
Looking up URI: http://wwwradionetzde:8000/purefm-blnmp3
DEBUG 2015-12-25 17:26:07,880 [1402:TuneInBackend-9] mopidybackend
Backend translated URI from tunein:station:s96162 to
http://wwwradionetzde:8000/purefm-blnmp3
DEBUG 2015-12-25 17:26:07,897 [1402:Audio-3] mopidyaudiogst
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_tuneintunein
TuneIn request: http://opmlradiotimecom/Tuneashx?render=json&id=s44244
DEBUG 2015-12-25 17:22:34,018 [1402:TuneInBackend-9]
urllib3connectionpool
"GET /Tuneashx?render=json&id=s44244 HTTP/11" 200 256
DEBUG 2015-12-25 17:22:34,035 [1402:TuneInBackend-9]
mopidy_tuneinactor
Looking up URI: http://purefmicertbfbe/purefmmp3m3u
DEBUG 2015-12-25 17:22:35,723 [1402:TuneInBackend-9] mopidybackend
Backend translated URI from tunein:station:s44244 to
http://purefmicertbfbe/purefmmp3m3u
DEBUG 2015-12-25 17:22:35,745 [1402:Audio-3] mopidyaudiogst
Got source-setup:
element=/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source
(__main__GstSoupHTTPSrc)

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

mopidyhttphandlers
Received WebSocket message from 19216810026:
u'{"method":"coreplaybackget_current_tl_track","jsonrpc":"20","id":28}'
DEBUG    2015-12-25 17:22:35,917 [1402:HttpServer] mopidyhttphandlers
Received WebSocket message from 19216810026:
u'{"method":"coreplaybackget_time_position","jsonrpc":"20","id":29}'
DEBUG    2015-12-25 17:22:35,935 [1402:Audio-3] mopidyaudioactor
 Position query failed
DEBUG    2015-12-25 17:22:36,670 [1402:MainThread] mopidyaudiogst
 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://purefmicertbfbe/purefmmp3m3u'
Saving to 'purefmmp3m3u'
42 bytes received
iMac-van-Beheerder:tmp marc$ cat purefmmp3m3u 
http://ice19infomaniakch:80/purefmmp3

—Reply to this email directly or view it on GitHub.

---

Reply to this email directly or view it on GitHub:
https://github.com/kingosticks/mopidy-tunein/issues/25#issuecomment-167250131

Verzonden van mijn Android telefoon met K-9 Mail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants