Skip to content

Commit

Permalink
fix music data error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sylviiu committed Mar 5, 2024
1 parent 72b5d1f commit 004be50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/ytdlp.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@ const ytdlpObj = {

console.log(`processed:`, o)
res(o);
}).catch(e => {
console.error(`error at music data parsing: ${e}`)
res(null);
})
};

Expand Down

0 comments on commit 004be50

Please sign in to comment.