Clarify the `/config/ytdl-sub-configs/cron` script with explanatory comments and a default `--dry-run` command. Also change the wrapper script to echo commands for easier debugging. To update an existing script, move the old script aside, restart the container to regenerate it, and edit the new script. Also clarify the Automating page in the Getting Started guide docs.
12 lines
658 B
Text
12 lines
658 B
Text
# Place your ytdl-sub command(s) here.
|
|
#
|
|
# This script is executed in the same directory as this file which also contains the
|
|
# default `./config.yaml` and `./subscriptions.yaml`, so you don't need to use the
|
|
# `--config` CLI option or pass a `SUBPATH` to the `$ ytdl-sub sub` sub-command.
|
|
#
|
|
# To prevent users accidentally triggering throttles or bans or downloading before
|
|
# testing their configuration, these default options only simulate a few
|
|
# downloads. Remove the `--dry-run` and `-o ...` CLI options when you've tested your
|
|
# configuration and you're ready to download entries unattended:
|
|
|
|
ytdl-sub --dry-run sub -o '--ytdl_options.max_downloads 3'
|