Scripts play a big role in o11. Each provider should have its own script. It can be either a shell script (.sh) or a python3 script (.py).
Scripts must be stored in the scripts directory.
For example, if you have a provider called Provider 1 with script name provider1.py, stored in scripts/provider1.py, then reference it as provider1 in the Script field. Extra parameters can be specified.
Script Parameters
Depending on the type of script, it will automatically receive the following parameters in addition to those configured by user:
- Common to all scripts:
action=[action type] bind=[bind] proxy=[proxy] doh=[doh] worker=[worker]- Action type can be one of:
login, pair, manifest, cdm, events, channels or heartbeat
- Action type can be one of:
- Manifest script:
action=manifest - CDM script:
action=cdm drm=[widevine or playready] challenge=[drm challenge] pssh=[pssh] - Events:
action=events - Channels:
action=channels - Heartbeat:
action=heartbeat heartbeaturl=[url] heartbeatparams=[params]