ytb2mp3 / youtube-mp3-downloader

Extract music from YouTube videos
MIT License
377 stars 104 forks source link

Download not working #106

Closed MightyCoderX closed 2 years ago

MightyCoderX commented 2 years ago
evalmachine.<anonymous>:339
rma=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading
responseText"),d.params=a,bu(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]};Yka(ncode);
                                                                                                                                                                  ^^^^^^^^^^^^^^^^

SyntaxError: Invalid or unexpected token
    at new Script (node:vm:100:7)
    at Object.exports.decipherFormats (C:\Users\matti\Documents\Programming\Web\BackEnd\Node\youtube-to-mp3-discord-bot\node_modules\ytdl-core\lib\sig.js:116:51)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
    at async exports.getInfo (C:\Users\matti\Documents\Programming\Web\BackEnd\Node\youtube-to-mp3-discord-bot\node_modules\ytdl-core\lib\info.js:401:17)
shaunsaker commented 2 years ago

This fix worked for me.

MightyCoderX commented 2 years ago

This fix worked for me.

I fixed it somehow but after a while of it working correctly it now gives me this other error (#107)

ytb2mp3 commented 2 years ago

This has been fixed in the 0.7.11 release.