ext: Remove get_library_updaters()
This commit is contained in:
parent
9321ae5f78
commit
95ef4c0193
@ -309,10 +309,6 @@ This is ``mopidy_soundspot/__init__.py``::
|
|||||||
from .commands import SoundspotCommand
|
from .commands import SoundspotCommand
|
||||||
return SoundspotCommand()
|
return SoundspotCommand()
|
||||||
|
|
||||||
def get_library_updaters(self):
|
|
||||||
from .library import SoundspotLibraryUpdateProvider
|
|
||||||
return [SoundspotLibraryUpdateProvider]
|
|
||||||
|
|
||||||
def register_gstreamer_elements(self):
|
def register_gstreamer_elements(self):
|
||||||
from .mixer import SoundspotMixer
|
from .mixer import SoundspotMixer
|
||||||
gobject.type_register(SoundspotMixer)
|
gobject.type_register(SoundspotMixer)
|
||||||
@ -410,27 +406,6 @@ more details.
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
Example library provider
|
|
||||||
========================
|
|
||||||
|
|
||||||
Currently library providers are only really relevant for people who want to
|
|
||||||
replace the default local library. Providing this in addition to a backend that
|
|
||||||
exposes a library for the `local` uri scheme lets you plug in whatever storage
|
|
||||||
solution you happen to prefer.
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
from mopidy.backends import base
|
|
||||||
|
|
||||||
|
|
||||||
class SoundspotLibraryUpdateProvider(base.BaseLibraryProvider):
|
|
||||||
def __init__(self, config):
|
|
||||||
super(SoundspotLibraryUpdateProvider, self).__init__(config)
|
|
||||||
self.config = config
|
|
||||||
|
|
||||||
# Your library provider implementation here.
|
|
||||||
|
|
||||||
|
|
||||||
Example GStreamer element
|
Example GStreamer element
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
|||||||
@ -89,15 +89,6 @@ class Extension(object):
|
|||||||
"""
|
"""
|
||||||
return []
|
return []
|
||||||
|
|
||||||
# TODO: remove
|
|
||||||
def get_library_updaters(self):
|
|
||||||
"""List of library updater classes
|
|
||||||
|
|
||||||
:returns: list of
|
|
||||||
:class:`~mopidy.backends.base.BaseLibraryUpdateProvider` subclasses
|
|
||||||
"""
|
|
||||||
return []
|
|
||||||
|
|
||||||
def get_command(self):
|
def get_command(self):
|
||||||
"""Command to expose to command line users running mopidy.
|
"""Command to expose to command line users running mopidy.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user