From 9844fc0c9a2c0eaa56431b756c839fd1bdfc269a Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Wed, 15 Feb 2023 08:12:59 -0600 Subject: 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 --- downloader.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3