diff --git a/dev/rest-api/endpoints/index.html b/dev/rest-api/endpoints/index.html index fb07d2bd..c676032e 100644 --- a/dev/rest-api/endpoints/index.html +++ b/dev/rest-api/endpoints/index.html @@ -3998,6 +3998,18 @@ ignore it safely. See Split e Skip a title that misses a required language or track, and continue with the next title. The job's skipped_titles lists each skip. The job fails when it has one title or skips every title. +skip_existing +boolean +false +Skip variants recorded as completed for this API key, matched after selection by service, title ID, quality, range and codec. Does not verify files on disk or compare audio/subtitle choices. + + +force +boolean +false +Bypass the completion archive check for this job. Does not change overwrite behaviour. + + forced_subs boolean false @@ -4387,12 +4399,13 @@ an HTTP caller would be remote code execution. You configure post-scripts only i "speed": "5.2 MB/s", "skipped_subtitles": [], "skipped_titles": [], - "input_prompt": null, - "notice": null, - "qr": null - } - ] -} + "already_present": [], + "input_prompt": null, + "notice": null, + "qr": null + } + ] +} @@ -4836,12 +4849,13 @@ answers the prompt within 10 minutes.

"completed_time": "2026-07-03T12:08:00+00:00", "output_files": ["/downloads/Example.S01E01.mkv"], "skipped_titles": [], - "error_message": null, - "parameters": { "...": "redacted" } - } - ], - "count": 1 -} + "already_present": [], + "error_message": null, + "parameters": { "...": "redacted" } + } + ], + "count": 1 +} @@ -4867,6 +4881,11 @@ answers the prompt within 10 minutes.

+

already_present lists completion-archive skips separately from newly produced output_files +and missing-track skipped_titles. Each entry contains service, title_id, title, +reason: "already_present", and variants (objects with quality, range, codec). The same +field is present in job progress/details. A job with only archive matches completes successfully. +The archive is independent of history retention, isolated per API key, and has no inventory endpoint.

DELETE /api/history/{job_id}

Remove a single persisted history entry. Returns 204 No Content (empty body) on success.

diff --git a/guide/cli-reference/index.html b/guide/cli-reference/index.html index 973ab10b..3f04f6d3 100644 --- a/guide/cli-reference/index.html +++ b/guide/cli-reference/index.html @@ -3205,6 +3205,16 @@ + + + + + + + + + + diff --git a/reference/configuration/download/index.html b/reference/configuration/download/index.html index 7c748b36..d58e37c5 100644 --- a/reference/configuration/download/index.html +++ b/reference/configuration/download/index.html @@ -1116,6 +1116,23 @@ + +
  • @@ -2083,6 +2100,23 @@ + +
  • @@ -2472,6 +2506,33 @@ config keys it does not know there, speed_limit for example. request body, workers: 0 for example, makes each job that uses it fail at submit with 400 INVALID_PARAMETERS.

    +

    Completion archive

    +

    dl.skip_existing: true opts CLI downloads into an append-only completion archive under +directories.cache/download-archive/cli.jsonl. --skip-existing enables it for one run; +--force bypasses its check and still records successful full outputs when the archive is enabled.

    +

    A receipt holds the canonical service tag, title ID (string or integer), and the resolved video +quality, range and codec. Selection runs normally before checking the archive: a best-available +720p result can match 720p again, but a later 1080p selection downloads. A different quality, +range or codec does not match. All selected variants must have receipts to skip the title. +A higher resolution does not satisfy an explicitly lower request.

    +

    Receipts are written only after a full movie/episode has been muxed and its output files have +been published. Samples, --skip-dl, --no-mux, track-only and omitted-track modes do not check +or update the archive. Unknown video metadata, non-string/non-integer IDs, music, stereoscopic +and generated/hybrid video outputs also fall back to normal downloading. So does +--skip-subtitle-errors, which can publish incomplete output. --include-sample still records +the complete output, not the sample.

    +

    This is a completion log, not a media inventory: deleting or moving an output does not remove +its receipt. It does not compare audio or subtitle choices or inspect existing files. Use +--force when an archived variant needs to be downloaded again. It does not import job history, +and history trimming or deletion does not affect it. Clearing the cache removes these receipts. +Concurrent writers lock only local archive I/O; simultaneous downloads may both proceed.

    +

    API jobs use separate files named api-<SHA-256 of caller key>.jsonl in the same directory. +They never consult the CLI archive or another caller's archive. Enable this with the request's +skip_existing: true, a serve.skip_existing default, or a services.<TAG>.dl.skip_existing +default. API callers cannot choose a scope or archive path. An ownerless internal job does not +use the archive. Remote service selection uses the local job's completion archive, not a remote +server's library. Skipped receipts are reported as already_present and complete successfully; +this does not change the separate missing-track skipped_titles behaviour.

    continue_downloads

  • Skip a title that misses a required language or track, and continue with the next title. A run with one title, or a run that skips every title, still fails.
    --skip-existingoffSkip a resolved video variant recorded in the completion archive. Does not verify that files still exist.
    --forceoffBypass the completion archive check for this run; does not change overwrite behaviour.
    -fs, --forced-subs off Include forced subtitle tracks.