(request: WSGIRequest)
return _set_extension_enabled("spotify", enabled)
Enables or disables spotify to be used as a song provider.
    Makes sure mopidy has correct spotify configuration.
Enables or disables spotify to be used as a song provider.
    Makes sure mopidy has correct spotify configuration.
Enables or disables spotify to be used as a song provider . Makes sure mopidy has correct spotify configuration .
def set_spotify_enabled(request: WSGIRequest) -> HttpResponse:
    """Enables or disables spotify to be used as a song provider.
    Makes sure mopidy has correct spotify configuration."""
    enabled = request.POST.get("value") == "true"
    return _set_extension_enabled("spotify", enabled)
def set_spotify_enabled ( request : WSGIRequest ) -> HttpResponse : enabled = request . POST . get ( "value" ) == "true" return _set_extension_enabled ( "spotify" , enabled )