(request: WSGIRequest)
Enables or disables youtube to be used as a song provider.
Enables or disables youtube to be used as a song provider.
Enables or disables youtube to be used as a song provider .
def set_youtube_enabled(request: WSGIRequest):
    """Enables or disables youtube to be used as a song provider."""
    enabled = request.POST.get("value") == "true"
    storage.set("youtube_enabled", enabled)
def set_youtube_enabled ( request : WSGIRequest ) : enabled = request . POST . get ( "value" ) == "true" storage . set ( "youtube_enabled" , enabled )