From 6f06ec02c3c8a1f868793d40c1c4f6ae5dde2fb0 Mon Sep 17 00:00:00 2001 From: Alexandre Petitjean Date: Mon, 17 Feb 2014 09:42:17 +0100 Subject: [PATCH] Assign proxy when source need it (not only http) --- mopidy/audio/actor.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mopidy/audio/actor.py b/mopidy/audio/actor.py index 3a19b855..0dba23eb 100644 --- a/mopidy/audio/actor.py +++ b/mopidy/audio/actor.py @@ -135,13 +135,8 @@ class Audio(pykka.ThreadingActor): self._appsrc = source def _on_source_setup(self, element, source): - uri = element.get_property('uri') - if not uri or not uri.startswith('http://'): - return + if hasattr(source.props, 'proxy') and self._config['proxy']['hostname']: - if self._config['proxy']['hostname']: - - # default values proxy_scheme = 'http' proxy_port = 80