feat(dl): let a service force --license-first with the LICENSE_FIRST class variable

This commit is contained in:
imSp4rky
2026-12-05 20:23:47 -07:00
parent ce7cb41eac
commit bd178bc3af
18 changed files with 59 additions and 5 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ Keep only certain track types, or skip certain track types.
| `--vaults-only` | Get no licence. A content key that no key vault, export or earlier track gives fails the title. With both flags, the last one wins. |
| `--cdm <name>` | Use the named CDM device for this run, and ignore the `cdm` config mapping, its quality and Widevine/PlayReady entries included. Over `--remote`, that device licenses the remote session, not the server CDM. |
| `--skip-dl` | Skip the download but still retrieve keys. |
| `--license-first` | Get the content keys of every track of a title before any track of that title downloads. A failed licence then stops the run before that title downloads data. Over `--remote` it applies on the client. No effect with `--skip-dl`. |
| `--license-first` | Get the content keys of every track of a title before any track of that title downloads. A failed licence then stops the run before that title downloads data. Over `--remote` it applies on the client. No effect with `--skip-dl`. A service can turn it on for every run with [`LICENSE_FIRST`](../reference/api/service.md). |
| `--all-drm` | License each track with both Widevine and PlayReady. Needs a CDM for each DRM system. Key Vaults are read first; `--cdm-only` sends a challenge for each system. Not for use with `--cdm`. |
| `--export` | Write an [export](downloading.md#keys-vaults-and-export) of each title's tracks, DRM init data and content keys to the exports directory. |
+1
View File
@@ -68,6 +68,7 @@ prints every title the service returned and stops before `--wanted`/`--latest-ep
filtering. `--skip-dl` runs the licence step but skips the segment download.
`--license-first` runs the licence step of every track of a title before any segment of that title downloads,
so a failed licence stops the run before that title downloads data. The download then sends no second licence.
A service can turn it on for every run with [`LICENSE_FIRST`](../reference/api/service.md).
## Choosing quality