moshfeu / y2mp3

An Electron app to download youtube playlist
MIT License
150 stars 28 forks source link

missing catch or finally after try #127

Closed spy64bit closed 1 year ago

spy64bit commented 1 year ago

Describe the bug After click on download, it show "missing catch or finally after try"

To Reproduce Steps to reproduce the behavior:

  1. paste YT link.'
  2. Click on 'download'
  3. See error

Add logs from DevTools

Please go to y2mp3 menu -> Toggle Developer Tools or hit ctrl+Alt+j (on windows) or ++j (on mac), if there are error messages please include them.

SyntaxError: Missing catch or finally after try at new Script (node:vm:100:7) at Object.t.decipherFormats (file:///C:/Users/Night/AppData/Local/Programs/y2mp3/resources/app.asar/resources/app.bundle.js:2:1430236) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Promise.all (index 0) at async t.getInfo (file:///C:/Users/Night/AppData/Local/Programs/y2mp3/resources/app.asar/resources/app.bundle.js:2:1427178) y2mp3error

Expected behavior The Video or audio file didn't download

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

moshfeu commented 1 year ago

Thank you for reporting 🙏 What's the url you are trying to download?

spy64bit commented 1 year ago

https://www.youtube.com/watch?v=52fGG37_0_E i also try on other url, it show the same error

moshfeu commented 1 year ago

It's a problem with one of the core packages

https://github.com/fent/node-ytdl-core/issues/1204

Please try the following version: https://github.com/moshfeu/y2mp3/releases/tag/v2.5.9-alpha

spy64bit commented 1 year ago

It's working now. thx =D