stream: Use new config system
This commit is contained in:
parent
775b276169
commit
5894e7afe0
@ -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**
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user