➜ BilibiliVideoDownload git:(master) ✗ node app.js
请输入av号...av50596322
这是个单P视频
(node:71797) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'quality' of undefined
at Object.getQuality (/Users/liyumin/Files/BilibiliVideoDownload/utils/getUrl.js:47:46)
at async main (/Users/liyumin/Files/BilibiliVideoDownload/app.js:20:16)
(node:71797) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:71797) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I notice that in the latest version of this software it still runs under Rosetta 2 in MacOS with M1 chips. And I would like to know if you have a plan to support Apple chips natively. I am not the professional in this area, but I am willing to help you test it and gives you feedback if you want.
FYI. Electron has supported arm64 since v11.0.0 and also ffmpeg since v1.1.0.