mirror of
https://gitlab.com/RemixDev/deezer-js.git
synced 2024-12-28 18:36:23 +00:00
Fixed get_tracks_url when tracks are not released yet
This commit is contained in:
parent
554670d51a
commit
d8b71268a9
|
@ -159,7 +159,9 @@ class Deezer{
|
|||
return null
|
||||
}
|
||||
|
||||
return response.data[0].media[0].sources[0].url
|
||||
if (response.data && response.data[0].media)
|
||||
return response.data[0].media[0].sources[0].url
|
||||
return null
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue