Fix item type in parseReleasesByTag()
This commit is contained in:
parent
b0970c79fe
commit
fd006a02fb
|
@ -1132,10 +1132,10 @@ function parseReleasesByTag(json, opts) {
|
|||
},
|
||||
featuredTrack: ''
|
||||
};
|
||||
if (item.type === 'a') {
|
||||
if (item.item_type === 'a') {
|
||||
mediaItem.type = 'album';
|
||||
}
|
||||
else if (item.type === 't') {
|
||||
else if (item.item_type === 't') {
|
||||
mediaItem.type = 'track';
|
||||
}
|
||||
if (item.art_id) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user