Fixed get_tracks_url when tracks are not released yet

This commit is contained in:
RemixDev 2021-07-25 15:24:01 +02:00
parent 554670d51a
commit d8b71268a9

View file

@ -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
}
}