Open Mittelblut9 opened 1 year ago
same
failed: evalmachine.
SyntaxError: Invalid regular expression: missing / at new Script (node:vm:94:7) at exports.decipherFormats (/Users/simo97/Desktop/api-bbs-music/node_modules/ytdl-core/lib/sig.js:116:51) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at async exports.getInfo (/Users/simo97/Desktop/api-bbs-music/node_modules/ytdl-core/lib/info.js:401:17)
Same here..
same here
Also getting this issue.
+1
me too
same
Same here
same
Same This fix still works tho: https://github.com/fent/node-ytdl-core/issues/1110#issuecomment-1219856316
Temporary fixed solution is downgrading ytdl-core version forked by @GreepTheSheep:
npm i ytdl-core@https://github.com/GreepTheSheep/node-ytdl-core
For mine, this fixed the "Invalid regular expression: missing / "
For me the patch by @khlevon worked
"ytdl-core": "https://github.com:khlevon/node-ytdl-core.git#v4.11.4-patch.2"
For me the patch by @khlevon worked
"ytdl-core": "https://github.com:khlevon/node-ytdl-core.git#v4.11.4-patch.2"
How about speed download? Its throttle?
This worked for me: Using last ytdl version (same download speed)
If you don't want to use a fork, you can also use a patch.
I use the patch-package
to create a patch for a particular module
"ytdl-core": "https://github.com:khlevon/node-ytdl-core.git#v4.11.4-patch.2"
It works perfectly on localhost however I am not able to deploy to Firebase Functions after adding this to package.json. Any solution?
@Mittelblut9 in your patch one important line is removed, here is a correct one https://gist.github.com/talyuk/6f197e6a58b7b8107a7c2d7f442b97ae
@Mittelblut9 in your patch one important line is removed, here is a correct one https://gist.github.com/talyuk/6f197e6a58b7b8107a7c2d7f442b97ae
Fixed 😅🫡
I recommend using @distubejs fork since it is active, has fast bug fixes, and has better performance with undici.
npm i @distube/ytdl-core
If you don't want to change your package name, you can overwrite the original package with this command.
npm i ytdl-core@npm:@distube/ytdl-core
It should work better since #1217 patch is copied from this fork
npm i ytdl-core@npm:@distubejs/ytdl-core
It says 404 not found!
npm i ytdl-core@npm:@distubejs/ytdl-core
It says 404 not found!
Sorry, their package org doesn't have js suffix, it should be @distube/ytdl-core
. Edited
Seems like the issue is fixed, at least "ytdl-core": "4.11.5"
is working for me
Seems like the issue is fixed, at least
"ytdl-core": "4.11.5"
is working for me
Downgrade should work but the download speed is throttled and extremely slow.
You can use "ytdl-core": "npm:@distube/ytdl-core@latest"
for better performance.
"ytdl-core": "4.11.5" is not working again
Changed to "ytdl-core": "npm:@distube/ytdl-core@latest" And it fails randomly with an error:
ffprobe exited with code 1 ffprobe version N-58069-gc253b180cb-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2021 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 57. 2.100 / 57. 2.100
I don't think ytdl-core use ffmpeg/ffprobe
"ytdl-core": "4.11.5" is not working again Changed to "ytdl-core": "npm:@distube/ytdl-core@latest" And it fails randomly with an error:
ffprobe exited with code 1 ffprobe version N-58069-gc253b180cb-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2021 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 57. 2.100 / 57. 2.100
I don't think ytdl-core use ffmpeg/ffprobe
Yeah, there is no ffmpeg/ffprobe inside it this package
But this is my internal logic to use downloaded files. And seems like "ytdl-core": "npm:@distube/ytdl-core@latest" is randomly downloading empty files
"ytdl-core": "4.11.5" is not working again Changed to "ytdl-core": "npm:@distube/ytdl-core@latest" And it fails randomly with an error:
ffprobe exited with code 1 ffprobe version N-58069-gc253b180cb-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2021 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 57. 2.100 / 57. 2.100
I don't think ytdl-core use ffmpeg/ffprobe
Yeah, there is no ffmpeg/ffprobe inside it this package
But this is my internal logic to use downloaded files. And seems like "ytdl-core": "npm:@distube/ytdl-core@latest" is randomly downloading empty files
After trying again, is it still the same? I never found that issue
1141 (closed for a few months now)