(request: WSGIRequest)
Enables or disables the new music only mode based on the given value.
Enables or disables the new music only mode based on the given value.
Enables or disables the new music only mode based on the given value .
def set_new_music_only(request: WSGIRequest) -> None:
    """Enables or disables the new music only mode based on the given value."""
    enabled = request.POST.get("value") == "true"
    storage.set("new_music_only", enabled)
def set_new_music_only ( request : WSGIRequest ) -> None : enabled = request . POST . get ( "value" ) == "true" storage . set ( "new_music_only" , enabled )