change: yt-dlp resolve node
This commit is contained in:
+1
-3
@@ -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",
|
||||
|
||||
@@ -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',
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user