Add asset folder or multiple assets to a change "HD Image/Video Player" setup

I just saw your other question. If you want to set all durations to 20 seconds, you’d have to modify the script as follows:

r = requests.post(
    url = 'https://info-beamer.com/api/v1/setup/%d' % setup_id,
    data = {
        'config': json.dumps({'': {
            'playlist': [{
                'file': asset['id'],
                'duration': 20, # this is new
            } for asset in assets],
        }}),
    },
    auth = HTTPBasicAuth('', API_KEY),
)

The duration is defined here.