summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils/player.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/player.js b/src/utils/player.js
index 44510d1..3c82fbf 100644
--- a/src/utils/player.js
+++ b/src/utils/player.js
@@ -33,7 +33,9 @@ async function downloadWithYtDlp(song, options = {}) {
const ytdlp = spawn('yt-dlp', [
'--cookies', COOKIES_FILE,
- '--format', 'bestaudio/best',
+ '--format', 'bestaudio[ext=m4a]/bestaudio',
+ '--external-downloader', 'aria2c',
+ '--external-downloader-args', '-x16 -s16 -k1M',
'--output', '-',
song.url,
]);