aboutsummaryrefslogtreecommitdiff
path: root/dot_config/yt-dlp
diff options
context:
space:
mode:
authortwells46 <173561638+twells46@users.noreply.github.com>2025-12-31 13:28:05 -0600
committertwells46 <173561638+twells46@users.noreply.github.com>2025-12-31 13:28:05 -0600
commit2140ab51deed88e90eafebf9520fa5f9995dc7c9 (patch)
tree03cf1dcd2900495c1efb79aaa85f3254ecd5fb87 /dot_config/yt-dlp
parentff8f50638e4b17a9d7cc88d2f0d9560b7effce39 (diff)
Migrate from stow
Diffstat (limited to 'dot_config/yt-dlp')
-rw-r--r--dot_config/yt-dlp/executable_config.tmpl33
-rw-r--r--dot_config/yt-dlp/executable_tmpdl.tmpl10
2 files changed, 43 insertions, 0 deletions
diff --git a/dot_config/yt-dlp/executable_config.tmpl b/dot_config/yt-dlp/executable_config.tmpl
new file mode 100644
index 0000000..60cad5e
--- /dev/null
+++ b/dot_config/yt-dlp/executable_config.tmpl
@@ -0,0 +1,33 @@
+#--proxy socks5h://localhost:9050
+
+--sub-langs en.*
+--embed-subs
+
+--sponsorblock-mark intro,outro,sponsor
+
+--restrict-filenames
+
+--sleep-requests 10
+--sleep-interval 10
+--max-sleep-interval 15
+--sleep-subtitles 4
+
+{{- if eq .chezmoi.hostname "Aragorn" }}
+-S "+vcodec:avc"
+--remux-video "mkv"
+--js-runtimes bun
+-f "bv*[height<=1080]+ba/b[height<=1080]"
+{{- else }}
+-f "bv+ba/b"
+{{- end }}
+
+-o "/home/tom/media/yt/%(uploader)s/%(upload_date>%Y-%m-%d)s_%(title)s.%(ext)s"
+#-o "/home/tom/media/yt/%(uploader)s/%(playlist&{}|all)s/%(upload_date>%Y-%m-%d)s_%(title)s.%(ext)s"
+
+#-o "/home/tom/media/yt/%(uploader)s/%(playlist&{}|all)s/%(playlist_index&{}-|)s_%(title)s.%(ext)s"
+
+#-o "/home/tom/media/yt/%(playlist&{}|all)s/%(playlist_index&{}-|)s%(title)s.%(ext)s"
+#-o "/home/tom/media/yt/workout/%(title)s.%(ext)s"
+
+#-f "bv*[height<=720]+ba/b[height<=720]"
+#-o "/tmp/yt/%(uploader)s/%(playlist_index&{}-|)s%(title)s.%(ext)s"
diff --git a/dot_config/yt-dlp/executable_tmpdl.tmpl b/dot_config/yt-dlp/executable_tmpdl.tmpl
new file mode 100644
index 0000000..7981b8e
--- /dev/null
+++ b/dot_config/yt-dlp/executable_tmpdl.tmpl
@@ -0,0 +1,10 @@
+--sub-langs en.*
+--embed-subs
+
+--sponsorblock-mark intro,outro,sponsor
+
+-f "bv*[height<=720]/ba*"
+-S "+vcodec:avc"
+--remux-video "mkv"
+
+-o "/tmp/yt/%(uploader)s/%(playlist_index&{}-|)s%(title)s.%(ext)s"