TypeError: Cannot read properties of null (reading 'id')
Closed this issue · 5 comments
Describe the bug
> spotify-dl@1.1.2 start
> ./cli.js https://open.spotify.com/album/3EfF0Ull4AIq98w5Em5XMa
ℹ Starting processing of album (https://open.spotify.com/album/3EfF0Ull4AIq98w5Em5XMa)
ℹ Generating new access token
ℹ extracting 34 tracks
ℹ extracting track set 1/2
ℹ extracting track set 2/2
TypeError: Cannot read properties of null (reading 'id')
at file:///Users/pedroresende/Projects/spotify-dl/lib/api.js:210:36
at Array.find (<anonymous>)
at parseTrack (file:///Users/pedroresende/Projects/spotify-dl/lib/api.js:209:40)
at file:///Users/pedroresende/Projects/spotify-dl/lib/api.js:204:39
at Array.map (<anonymous>)
at extractTracks (file:///Users/pedroresende/Projects/spotify-dl/lib/api.js:204:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async extractAlbum (file:///Users/pedroresende/Projects/spotify-dl/lib/api.js:302:5)
at async getAlbum (file:///Users/pedroresende/Projects/spotify-dl/util/get-songdata.js:12:10)
at async run (file:///Users/pedroresende/Projects/spotify-dl/util/runner.js:167:22)
To Reproduce
Steps to reproduce the behavior:
- run
npm run start https://open.spotify.com/album/3EfF0Ull4AIq98w5Em5XMa
Expected behavior
To extract correctly the musics
Desktop (please complete the following information):
- OS: MacOS 13.4
Additional context
Node version 18.16.0
you supposed to use spotifydl
command.
@SwapnilSoni1999 using the spotifydl
command
@pedroresende sorry must have missed this one
can confirm i can atleast replicate it, ill have a deeper look later today
(its a bug related to the latest wave of changes around adding more audio info to the files i.e bpm, subtitles)
@pedroresende sorry must have missed this one
can confirm i can atleast replicate it, ill have a deeper look later today
(its a bug related to the latest wave of changes around adding more audio info to the files i.e bpm, subtitles)