stream: Use new config system

This commit is contained in:
Stein Magnus Jodal 2013-04-05 15:41:59 +02:00
parent 775b276169
commit 5894e7afe0
2 changed files with 4 additions and 5 deletions

View File

@ -23,9 +23,8 @@ protocols =
__doc__ = """A backend for playing music for streaming music.
This backend will handle streaming of URIs in
:attr:`mopidy.settings.STREAM_PROTOCOLS` assuming the right plugins are
installed.
This backend will handle streaming of URIs matching the ``stream/protocols``
config value, assuming the needed GStreamer plugins are installed.
**Issues**

View File

@ -5,7 +5,7 @@ import urlparse
import pykka
from mopidy import audio as audio_lib, settings
from mopidy import audio as audio_lib
from mopidy.backends import base
from mopidy.models import Track
@ -21,7 +21,7 @@ class StreamBackend(pykka.ThreadingActor, base.Backend):
self.playlists = None
self.uri_schemes = audio_lib.supported_uri_schemes(
settings.STREAM_PROTOCOLS)
config['stream']['protocols'])
# TODO: Should we consider letting lookup know how to expand common playlist