mopidy-spotify-tunigo
mopidy-spotify-tunigo copied to clipboard
Make extension dependent on mopidy-spotify
Not sure how fancy the check should be and if we should change anything in mopidy for this. But it would be nice if this extension disables itself when mopidy-spotify is disabled.
I was looking at if requiring a codec (https://github.com/mopidy/mopidy/issues/891) might make sense. Could be I want the same for specifying that this backend requires something that can handle spotify uris to be installed.
Sorry, completely forgot about this.
It would be nice if extensions could specify which URIs they provide and depend on (and possibly other things than URIs). Then Mopidy could disable extensions which doesn't have the required dependencies (either because of missing installation or because it is disabled). If this isn't too overkill, that is.
The other (simpler) solution I see is for mopidy-spotify-tunigo to read the config for spotify/enabled. Or do you have any other suggestion?