mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 09:06:02 +03:00
[GH-ISSUE #1613] Bug: I can't seem to specify YOUTUBEDL_ARGS or YTDLP_EXTRA_ARGS #965
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#965
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @melyux on GitHub (Dec 9, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1613
I'm trying to run an
archivebox addcommand with specific yt-dlp flags, on the latest development commit.But I'm trying every escaping variation of
docker compose exec --user=archivebox archivebox /bin/bash -c "env YTDLP_EXTRA_ARGS=[\"--limit-rate=10M\"] archivebox config --get YTDLP_EXTRA_ARGS"and it doesn't seem to work, and same withYOUTUBEDL_ARGS(did it change?).I used to be able to do:
docker compose run --rm archivebox "config --get URL_BLACKLIST && YOUTUBEDL_ARGS='[\"--restrict-filenames\"]' /usr/local/bin/archivebox add 'https://www.youtube.com/shorts/blahblahblah'"and it would just work. The&&was to be able to enter the environment variable before thearchiveboxcommand, but now that's not allowed.@pirate commented on GitHub (Dec 9, 2024):
You can pass env vars with -e https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/#set-environment-variables-with-docker-compose-run---env
You can also do
docker compose run --rm archivebox /bin/bash -c '...'if you want to run arbitrary shell stuff inside the docker container.@melyux commented on GitHub (Dec 10, 2024):
Thanks for that. But even though this works perfectly like this:
docker compose run --rm archivebox config --set YTDLP_EXTRA_ARGS='["--write-description", "--write-info-json", "--write-annotations", "--write-thumbnail", "--no-call-home", "--write-sub", "--all-subs", "--write-auto-sub", "--convert-subs=srt", "--yes-playlist", "--continue", "--ignore-errors", "--geo-bypass", "--add-metadata", "--max-filesize=500m", "--sub-lang=en"]'...running this with the
-eflag doesn't seem to affect the config (even though it works with other config options):docker compose run --rm -e YTDLP_EXTRA_ARGS='["--write-description", "--write-info-json", "--write-annotations", "--write-thumbnail", "--no-call-home", "--write-sub", "--all-subs", "--write-auto-sub", "--convert-subs=srt", "--yes-playlist", "--continue", "--ignore-errors", "--geo-bypass", "--add-metadata", "--max-filesize=500m", "--sub-lang=en"]' archivebox config --get YTDLP_EXTRA_ARGSIt just prints the default arguments instead of the ones I put in the -e flag.
The second option with
docker compose run --rm archivebox /bin/bash -c "YTDLP_EXTRA_ARGS='[\"--write-comments\"]' archivebox config --get YTDLP_EXTRA_ARGS"also doesn't work, it just prints out the default YTDLP_EXTRA_ARGS config