async def playback(dev: Device, cmd, target, value):
    """Get and set playback settings, e.g. repeat and shuffle.."""
    if target and value:
        dev.set_playback_settings(target, value)
    if cmd == "support":
        click.echo("Supported playback functions:")
        supported = await dev.get_supported_playback_functions("storage:usb1")
        for i in supported:
            print(i)
    elif cmd == "settings":
        print_settings(await dev.get_playback_settings())
        # click.echo("Playback functions:")
        # funcs = await dev.get_available_playback_functions()
        # print(funcs)
    else:
        click.echo("Currently playing: %s" % await dev.get_play_info())
async def playback ( dev : Device , cmd , target , value ) : if target and value : dev . set_playback_settings ( target , value ) if cmd == "support" : click . echo ( "Supported playback functions:" ) supported = await dev . get_supported_playback_functions ( "storage:usb1" ) for i in supported : print ( i ) elif cmd == "settings" : print_settings ( await dev . get_playback_settings ( ) ) else : click . echo ( "Currently playing: %s" % await dev . get_play_info ( ) )
Get and set playback settings, e.g. repeat and shuffle..