docs(config): make the configuration reference the one owner of every option table

This commit is contained in:
imSp4rky
2026-12-04 18:02:28 -07:00
parent ec6a48f8c0
commit 2f8e2aba37
16 changed files with 555 additions and 659 deletions
+36 -7
View File
@@ -18,11 +18,13 @@ config keys:
| `-r` / `--range` | `range` |
| `--list` | `list` |
| `--tmdb` | `tmdb_id` |
| `--tvdb` | `tvdb_id` |
| `--imdb` | `imdb_id` |
| `--anilist` | `anilist_id` |
| `-naa` / `--noatmos` | `no_atmos` |
| `-o` / `--output` | `output_dir` |
| `--cdm-only` / `--vaults-only` | `cdm_only` |
| `--cdm-only` / `--vaults-only` | `cdm_only` (`true` for `--cdm-only`, `false` for `--vaults-only`) |
| `--cdm` | `cdm_name` |
**Precedence** (highest first): an explicit CLI flag → a per-service
[`services.<TAG>.dl`](services.md) override → this global `dl:` block → the built-in
@@ -273,13 +275,13 @@ in or writes them as sidecar files. See [Subtitles](../../guide/subtitles.md) fo
| Sub-key | Type | Default | Description |
|---------|------|---------|-------------|
| `strip_sdh` | bool | `true` | Strip SDH/CC cues (hearing-impaired annotations) into a clean track. |
| `sdh_method` | str | `"auto"` | SDH-stripping backend to use. |
| `sdh_method` | str | `"auto"` | The engine that strips SDH cues: `auto`, `subby`, `subtitleedit` or `filter-subs`. See [SDH engines](#sdh-engines). |
| `preserve_formatting` | bool | `true` | Pass WebVTT cue text through as written. `false` re-encodes it through pycaption, which merges identical cues but flattens styling. unshackle removes WebVTT-only cue markup either way. |
| `convert_before_strip` | bool | `true` | Convert to the working format before stripping SDH. |
| `conversion_method` | str | `"auto"` | Subtitle conversion backend. |
| `convert_before_strip` | bool | `true` | Convert a subtitle that is not SRT to SRT before `filter-subs` strips SDH cues, also when `filter-subs` runs as the fallback of another engine. With `false`, `filter-subs` leaves a subtitle that is not SRT as it is. |
| `conversion_method` | str | `"auto"` | The first conversion backend to try: `auto`, `subtitleedit`, `subby`, `pysubs2` or `pycaption`. `auto` ranks the backends for each conversion. A named backend goes first, and unshackle uses the others only when it cannot convert the pair. See [Conversion backends](#conversion-backends). |
| `output_mode` | str | `"mux"` | `mux` embeds subtitles in the MKV; `sidecar` writes separate files; `both` writes sidecars and still muxes. |
| `sidecar_format` | str | `"srt"` | Format for sidecar files when `output_mode` is `sidecar` or `both`. |
| `type_priority` | list | *(unset)* | Ordered ranking of subtitle types (`forced`, `normal`, `sdh`; CC counts as SDH). Types you leave out fall to the end. |
| `type_priority` | list | *(unset)* | Ordered ranking of subtitle types (`forced`, `normal`, `sdh`; CC counts as SDH). Types you leave out fall to the end. Unset keeps the order forced, normal, SDH. |
| `group_by` | str | `"type"` | Which key groups the subtitle tracks. `type` puts all forced tracks together, then all normal, then all SDH. `language` keeps each language next to its own variants. |
| `language_priority` | list | *(unset)* | Languages to sort to the top, in the order you give. The rest keep the default order: original language first, then alphabetical. Nothing is removed. |
| `ass_style` | dict | *(unset)* | Style for subtitles converted to ASS, as pysubs2 or ASS style fields (`fontname`, `fontsize`, `primarycolor` or `PrimaryColour`, ...) for a 1080-line picture. Makes ASS the output format when `sub_format` is unset. See [Custom font and style](../../guide/subtitles.md#custom-font-and-style). |
@@ -292,6 +294,32 @@ subtitle:
sidecar_format: srt
```
### SDH engines { #sdh-engines }
Every engine removes bracketed sound effects (`[MUSIC PLAYING]`, `(door creaks)`), speaker
labels (`MAN:`) and font tags, and keeps plain dialogue and inline `<i>` styling. They differ
on music and lyric lines. unshackle compares the value case-sensitively, and an unknown value
gives `filter-subs`.
| `sdh_method` | Engine that runs | Lyric lines (`♪ ... ♪`) |
| --- | --- | --- |
| `auto` | `subby` for an SRT track. For any other format, SubtitleEdit when you install it and `conversion_method` is `auto` or `subtitleedit`, otherwise `filter-subs`. | Kept, unless the fallback reaches `filter-subs`. |
| `subby` | `subby`, but only for a track that is already SRT. Any other format falls through to `filter-subs`. | Kept for SRT, removed otherwise. |
| `subtitleedit` | SubtitleEdit when you install it, otherwise `filter-subs`. | Kept with SubtitleEdit, removed without it. |
| `filter-subs` | `filter-subs` always. | Removed. |
### Conversion backends { #conversion-backends }
| `conversion_method` | Best at | Requires |
| --- | --- | --- |
| `subtitleedit` | Highest fidelity; keeps positioning and italics | SubtitleEdit installed |
| `subby` | SRT output with clean-up | - |
| `pysubs2` | Best fidelity for styled SSA/ASS | - (pure Python, always available) |
| `pycaption` | Last-resort fallback; flattens styling | - |
What each backend keeps of the styling is in
[What each backend preserves](../../guide/subtitles.md#what-each-backend-preserves).
!!! note "`group_by` track order"
| `group_by` | Result |
|---|---|
@@ -379,7 +407,7 @@ Matroska (MKV) muxing options.
| Sub-key | Type | Default | Description |
|---------|------|---------|-------------|
| `set_title` | bool | `true` | Write a human-readable title into the MKV container. |
| `default_language` | dict | `{}` | Force which language is flagged *default* per track type, e.g. `{audio: en, subtitle: en}`. A tag with a region, such as `en-US`, matches only that variant. |
| `default_language` | dict | `{}` | Force which language is flagged *default* per track type (`video`, `audio`, `subtitle`), e.g. `{audio: en, subtitle: en}`. A tag with a region, such as `en-US`, matches only that variant. |
| `default_subtitle_type` | str or list | unset | The subtitle types that can take the *default* flag, in order: `forced`, `normal`, `sdh` (CC counts as SDH, and `cc` is the same as `sdh`). The first subtitle track of the first type that the title has gets the flag. With `default_language.subtitle`, only the tracks in that language count. unshackle ignores a different word with a warning. `normal` is the value for players that read the forced flag. Read [Muxing](../../guide/output-and-naming.md#muxing-options). |
| `merge_audio` | bool | `true` | Merge all audio into one file. `--split-audio` on the CLI flips this off. |
| `merge_video` | bool | `false` | Merge video tracks that share height, range, and codec into one file, so only language varies inside a file. `--merge-video` on the CLI flips this on. |
@@ -403,7 +431,8 @@ muxing:
Language-tag remapping and the rule engine behind the `{lang_tag}` filename variable. When a
`rules` list is present, unshackle evaluates each rule in order and uses the first match's
`tag`. A rule can examine:
`tag`. Every condition of a rule must match. When no rule matches, `{lang_tag}` is empty. A
rule can examine:
| Condition | Meaning |
|-----------|---------|