ass_set_script_info
Set, insert, or update a [Script Info] key in an ASS subtitle document, with optional placement before another key.
Instructions
Set, insert or reposition-free-update a [Script Info] key.
Args:
key: the key, e.g. "Title". Matching is case- and
space-insensitive, and the spelling already in the file is kept.
value: new value (converted with str; must not contain a newline).
doc_id: document id or None for the current document.
before: when the key does not exist yet, insert it immediately before
this existing key instead of appending at the end.
Returns:
{"doc_id", "key", "value", "created", "index"} where index is
the entry position inside [Script Info].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes | ||
| before | No | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||