Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use \ to split arguments to newlines. #83

Open
jtagcat opened this issue Mar 1, 2022 · 1 comment
Open

Use \ to split arguments to newlines. #83

jtagcat opened this issue Mar 1, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jtagcat
Copy link
Contributor

jtagcat commented Mar 1, 2022

From https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection/blob/master/scripts/Archivist%20Scripts/Archivist%20Scripts/Channels/Channels.sh

It is currently quite hard to track and manage, it's on a single line. Instead, something like:

yt-dlp --format "clipped_for_demo" \
  --force-ipv4  --sleep-requests 1 --sleep-interval 5 --max-sleep-interval 30 `# avoid being rate-limited` \
  --ignore-errors \
  --no-continue \
  --no-overwrites \
  --add-metadata --parse-metadata "%(title)s:%(meta_title)s" --parse-metadata "%(uploader)s:%(meta_artist)s" \
  --write-description --write-info-json --write-annotations \
  --write-thumbnail --embed-thumbnail \
  --all-subs --embed-subs --get-comments \
  --match-filter "!is_live & !live" `# skip downloading active livestreams` \
  --output "%(uploader)s/%(uploader)s - %(upload_date)s - %(title)s/%(uploader)s - %(upload_date)s - %(title)s [%(id)s].%(ext)s" \
  --merge-output-format "mkv" \
  --datebefore "$(date --date="30 days ago" +%Y%m%d)" \
  --throttled-rate 100K `# for adult content, restart bla` \
  --batch-file "Source - Channels.txt" \
  --download-archive archive.log \
  --verbose  2>&1 | tee output.log

Would be much more readable and diffable (and documentation is right there!).

yes/no/has this been discussed before?

@TheFrenchGhosty TheFrenchGhosty added the enhancement New feature or request label Mar 25, 2022
@TheFrenchGhosty
Copy link
Owner

It has been discussed, and even tried... maybe 2 years ago. I just couldn't make it work back then, and never tried again

If I do it, every argument should be on their own line, "categories" should be separated by a blank line, and there shouldn't be any comments (since Details.md is here to explain the arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants