diff --git a/mopidy/frontends/mpd/__init__.py b/mopidy/frontends/mpd/__init__.py index 6b4eacc8..e095da14 100644 --- a/mopidy/frontends/mpd/__init__.py +++ b/mopidy/frontends/mpd/__init__.py @@ -1,4 +1,10 @@ -"""The MPD server frontend. +from __future__ import unicode_literals + +import mopidy +from mopidy import ext + + +__doc__ = """The MPD server frontend. MPD stands for Music Player Daemon. MPD is an independent project and server. Mopidy implements the MPD protocol, and is thus compatible with clients for the @@ -44,7 +50,24 @@ near future: - Live update of the music database is not supported """ -from __future__ import unicode_literals -# flake8: noqa +# TODO Move import into method when FRONTENDS setting is removed from .actor import MpdFrontend + + +class Extension(ext.Extension): + + name = 'Mopidy-MPD' + version = mopidy.__version__ + + def get_default_config(self): + return '[mpd]' + + def validate_config(self, config): + pass + + def validate_environment(self): + pass + + def get_frontend_classes(self): + return [MpdFrontend] diff --git a/setup.py b/setup.py index 340d5058..eb46fe87 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,7 @@ setup( ], b'mopidy.extension': [ 'local = mopidy.backends.local:Extension', + 'mpd = mopidy.frontends.mpd:Extension', 'spotify = mopidy.backends.spotify:Extension', 'stream = mopidy.backends.stream:Extension', ],