summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Shangreaux <shoshin@cicadas.surf>2023-02-15 08:12:59 -0600
committercolin <colin@cicadas.surf>2023-02-15 07:18:15 -0800
commit9844fc0c9a2c0eaa56431b756c839fd1bdfc269a (patch)
treeb70cce44270625864799577b6c7da4cba13a85fd
parent973dcf81dddee6e7d6c1bbf430ed3b4cb988ab27 (diff)
Add: explicit --audio-format opus to youtube-dl command
certain codecs aren't supported by HTML5 media, at least in Firefox. specifically, m4a tracks were unplayable even though they would download just fine. this will ask the downloader to convert them to opus on download
-rw-r--r--downloader.lisp2
1 files changed, 1 insertions, 1 deletions
diff --git a/downloader.lisp b/downloader.lisp
index e9b8ffb..07ecb84 100644
--- a/downloader.lisp
+++ b/downloader.lisp
@@ -66,7 +66,7 @@
(trackinfo-file
(trackinfo-file tmpdir tmpname)))
(uiop:run-program
- (format nil "youtube-dl --playlist-end 1 --write-info-json -x -o \"~a/~a.%(ext)s\" '~a'"
+ (format nil "youtube-dl --audio-format opus --playlist-end 1 --write-info-json -x -o \"~a/~a.%(ext)s\" '~a'"
tmpdir tmpname url))
(let* ((info
(trackinfo trackinfo-file))