From 4a944332370d167c797866b3272c6fc0d2a7d6d4 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Sun, 6 Oct 2013 14:19:28 +0200 Subject: [PATCH] audio: Wrap long line, and explain conidtional instalation of icy element. --- mopidy/audio/playlists.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mopidy/audio/playlists.py b/mopidy/audio/playlists.py index 9f56ea27..6f4fdd46 100644 --- a/mopidy/audio/playlists.py +++ b/mopidy/audio/playlists.py @@ -317,8 +317,8 @@ class UriListElement(BasePlaylistElement): if event.has_name('urilist-played'): error = gst.GError(gst.RESOURCE_ERROR, gst.RESOURCE_ERROR_FAILED, b'Nested playlists not supported.') - message = gst.message_new_error(self, error, b'Playlists pointing to other playlists is not supported') - self.post_message(message) + message = b'Playlists pointing to other playlists is not supported' + self.post_message(gst.message_new_error(self, error, message)) return True def handle(self, uris): @@ -400,5 +400,7 @@ def register_elements(): register_element(XspfDecoder) register_element(AsxDecoder) register_element(UriListElement) + + # Only register icy if gst install can't handle it on it's own. if not gst.element_make_from_uri(gst.URI_SRC, 'icy://'): register_element(IcySrc)