yt-dlp: config -> config.tmpl (for using different path)

This commit is contained in:
inkch
2025-05-17 19:17:45 +09:00
parent d41c5e0620
commit 91a62ee415

View File

@ -1,5 +1,9 @@
-f b
--prefer-free-formats
{{ if eq .chezmoi.hostname "arch" }}
-o "/mnt/hdd/vids/yt/%(uploader)s/%(upload_date)s - %(title).200s [%(id)s].%(ext)s"
{{ else if eq .chezmoi.hostname "buzz" }}
-o "/mnt/hdd/vids/yt/%(uploader)s/%(upload_date)s - %(title).200s [%(id)s].%(ext)s"
{{ end }}
--downloader 'aria2c'
--downloader-args 'aria2c:--console-log-level=warn -j 8 -x 8 -s 8 -k 4M -U "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"'