mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2025-01-16 11:15:33 +00:00
fixed album parsing art_pic error
This commit is contained in:
parent
e31a32e9c4
commit
f7710975c2
|
@ -39,7 +39,8 @@ class Album {
|
||||||
// Getting artist image ID
|
// Getting artist image ID
|
||||||
// ex: https://e-cdns-images.dzcdn.net/images/artist/f2bc007e9133c946ac3c3907ddc5d2ea/56x56-000000-80-0-0.jpg
|
// ex: https://e-cdns-images.dzcdn.net/images/artist/f2bc007e9133c946ac3c3907ddc5d2ea/56x56-000000-80-0-0.jpg
|
||||||
let art_pic = albumAPI.artist.picture_small
|
let art_pic = albumAPI.artist.picture_small
|
||||||
art_pic = art_pic.slice(art_pic.indexOf('artist/')+7, -24)
|
if (art_pic) art_pic = art_pic.slice(art_pic.indexOf('artist/')+7, -24)
|
||||||
|
else art_pic = ""
|
||||||
this.mainArtist = new Artist(
|
this.mainArtist = new Artist(
|
||||||
albumAPI.artist.id,
|
albumAPI.artist.id,
|
||||||
albumAPI.artist.name,
|
albumAPI.artist.name,
|
||||||
|
|
Loading…
Reference in a new issue