feat(dl): add --sample and --include-sample

--sample downloads only a time window of a title (default 120-180 s) and cuts the mux to it. --include-sample cuts a 60 s sample from a finished file. Both write to a Sample folder with a SAMPLE tag on the filename
This commit is contained in:
imSp4rky
2026-10-11 14:53:50 -06:00
parent 0a7c76561c
commit ecdfb667c9
20 changed files with 958 additions and 30 deletions
+8
View File
@@ -1005,6 +1005,14 @@ async def download(request: web.Request) -> web.Response:
no_mux:
type: boolean
description: Do not mux tracks into a container file (default - false)
include_sample:
type: boolean
description: Also cut a 60 second sample from each muxed file into a Sample folder next to it (default - false)
sample:
oneOf:
- type: boolean
- type: string
description: Download a short sample and write it to a Sample folder. `true` for 60 seconds from 2 minutes in, or a `"START-END"` string in seconds (e.g., `"0-60"`) (default - null)
workers:
type: integer
description: Max workers/threads per track download (default - None)