| 123456789101112131415161718192021222324 |
- import mopidy
- class Extension(mopidy.ext.Extension):
- dist_name = "Mopidy-SmartPlaylists"
- ext_name = "smartplaylists"
- version = "0.1.0"
- def get_default_config(self):
- return """
- [smartplaylists]
- genres = rock,jazz,blues
- max_tracks = 50
- playlist_prefix = [Smart]
- """
- def get_config_schema(self):
- schema = super().get_config_schema()
- # You can add: schema["genres"] = config.String()
- return schema
- def setup(self, registry):
- from .backend import SmartPlaylistsBackend
- registry.add("backend", SmartPlaylistsBackend)
|