SwapnilSoni1999/spotify-dl

If there is no bmp in the song information, the script generates a runtime error

Closed this issue · 2 comments

Describe the bug
If there is no bmp in the song information, the script generates a runtime error

To Reproduce
it encounter erros when the bmp is not exist

Expected behavior
The script works without runtime errors.

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

TypeError: Cannot read properties of undefined (reading 'tempo')
    at parseTrack (file:///Users/gnujoow/Desktop/spotify-dl/lib/api.js:230:23)
    at file:///Users/gnujoow/Desktop/spotify-dl/lib/api.js:290:20
    at Array.map (<anonymous>)
    at extractPlaylist (file:///Users/gnujoow/Desktop/spotify-dl/lib/api.js:290:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async getPlaylist (file:///Users/gnujoow/Desktop/spotify-dl/util/get-songdata.js:39:10)
    at async run (file:///Users/gnujoow/Desktop/spotify-dl/util/runner.js:161:22)

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

This issue has been automatically closed as stale due to lack of activity, Please reopen if you think this needs to be