about summary refs log tree commit diff stats
path: root/etc/yt-dlp
diff options
context:
space:
mode:
Diffstat (limited to 'etc/yt-dlp')
-rw-r--r--etc/yt-dlp/config3
-rw-r--r--etc/yt-dlp/config-music3
-rw-r--r--etc/yt-dlp/config-playlist4
3 files changed, 8 insertions, 2 deletions
diff --git a/etc/yt-dlp/config b/etc/yt-dlp/config
index 23171b9..60a5c77 100644
--- a/etc/yt-dlp/config
+++ b/etc/yt-dlp/config
@@ -1,6 +1,5 @@
---prefer-free-formats
 # always use aria2
---external-downloader aria2c
+--downloader aria2c
 # format
 --format bestvideo+bestaudio/best
 # format definition
diff --git a/etc/yt-dlp/config-music b/etc/yt-dlp/config-music
index b8109f8..a4be168 100644
--- a/etc/yt-dlp/config-music
+++ b/etc/yt-dlp/config-music
@@ -2,6 +2,9 @@
 --prefer-free-formats
 # only download audio stream
 --format bestaudio
+# fix dumb track names
+--restrict-filenames
 # dl to ~mus
 --paths ~/share/xdg/mus
+# coherent output format
 --output %(uploader_id,uploader,album_artist)s/%(release_year,release_date>%Y,upload_date>%Y|)s-%(album|singles)s/%(track_number,playlist_index|)02d%(track_number,playlist_index&-|)s%(track,title|title)s.%(ext)s
diff --git a/etc/yt-dlp/config-playlist b/etc/yt-dlp/config-playlist
new file mode 100644
index 0000000..528f5a3
--- /dev/null
+++ b/etc/yt-dlp/config-playlist
@@ -0,0 +1,4 @@
+# fix dumb track names
+--restrict-filenames
+# coherent output format
+--output %(uploader)s/%(playlist_title)s/%(playlist_index)02d-s%(track,title|title)s.%(ext)s