]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
multimedia: add yt-dlp configuration
authorSimon Ruderich <simon@ruderich.org>
Wed, 19 Apr 2023 05:44:33 +0000 (07:44 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 19 Apr 2023 05:44:33 +0000 (07:44 +0200)
multimedia/setup.sh
multimedia/yt-dlp/config [new file with mode: 0644]

index 016f4972ae96504edda04907470458fa15097229..6678347be05810d362d0eed6256b44d5ae9f4150 100755 (executable)
@@ -62,6 +62,10 @@ if installed handbrake; then
     link handbrake ~/.config/ghb
 fi
 
+if installed yt-dlp; then
+    link yt-dlp ~/.config/yt-dlp
+fi
+
 if installed pipewire; then
     link pipewire ~/.config/pipewire
 fi
diff --git a/multimedia/yt-dlp/config b/multimedia/yt-dlp/config
new file mode 100644 (file)
index 0000000..92012b4
--- /dev/null
@@ -0,0 +1,17 @@
+# Default options for yt-dlp
+
+# SPDX-License-Identifier: GPL-3.0-or-later
+# Copyright (C) 2023  Simon Ruderich
+
+
+--no-overwrites
+
+--write-subs
+
+--embed-subs
+--embed-chapters
+
+# If part of a playlist then prefix with playlist name and index of video for
+# proper sorting; add release date or upload date (also stored as mtime but it
+# might get modified during file transfers); otherwise use default template
+--output "%(playlist|)s%(playlist& - |)s%(playlist_index|)02d%(playlist& |)s%(title)s [%(id)s %(release_date,upload_date)s].%(ext)s"