{{define "ytdlp_notes"}}
yt-dlp options managed by VidArchive

VidArchive sets a few yt-dlp options itself so downloads stay self-contained and trackable. Passing any of these — or a conflicting inverse — in Custom Flags will make the download fail with an error.

{{if .}} {{end}}
OptionWhy it's managed
-o Output template is always overridden so each item lands in its own self-contained directory.
-P Download path is set to a per-download working directory before items are imported into the library.
--cookies Injected automatically from the cookies you save in Settings (when present).
--write-info-json Always added for subscriptions so each item's stable identity (id + extractor) is recorded for refresh and de-duplication.
--download-archive Added in Skip existing mode so entries already downloaded are skipped.
--skip-download Added in Metadata only mode to refresh metadata without re-fetching media.
{{end}}