change: yt-dlp resolve node

This commit is contained in:
2026-06-28 14:56:40 +02:00
parent 248cc6ae39
commit a727be4ef3
2 changed files with 1 additions and 14 deletions
+1 -3
View File
@@ -12,9 +12,7 @@
"delay": "2000000"
},
"scripts": {
"start": "nodemon src/main.js",
"stop": "ssh raphix@raphix.fr sudo -S -u gitlab-ci pm2 stop 'Subsonics'",
"restart": "ssh raphix@raphix.fr sudo -S -u gitlab-ci pm2 start 'Subsonics'"
"start": "nodemon src/main.js"
},
"keywords": [],
"author": "Raphix",
-11
View File
@@ -68,18 +68,7 @@ async function getStream(song, seekTime = 0) {
// Sélecteur large : Audio pur OU Vidéo (ffmpeg se débrouillera)
'-f', 'bestaudio/best',
// IMPORTANT : On se fait passer pour Edge (Windows) pour correspondre aux cookies
'--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
'--force-ipv4',
'--no-warnings',
'--no-part',
'--no-keep-fragments',
'--buffer-size', '16K',
'--no-check-certificate',
'--ignore-config',
'--ignore-errors',
'--js-runtimes', 'node',
];