Skip to content

Commit

Permalink
Fix blank queue, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Mar 6, 2021
1 parent b281b20 commit 27b0eec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.3.3
-----
1. Fix blank queue, etc.

2.3.2
-----
1. 'Now playing' should update on year change.
Expand Down
14 changes: 7 additions & 7 deletions MaterialSkin/HTML/material/html/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1122,18 +1122,18 @@ function useBand(genre) {
function splitMultiples(item) {
for (var i=0, len=ARTIST_TYPES.length; i<len; ++i) {
let idsKey = ARTIST_TYPES[i]+"_ids";
let strings = undefined!=item[ARTIST_TYPES[i]] ? item[ARTIST_TYPES[i]].split(MULTI_SPLIT_REGEX) : undefined;
let ids = undefined!=item[idsKey] ? (""+item[idsKey]).split(",") : undefined;

if (undefined!=ids) {
let strings = undefined!=item[ARTIST_TYPES[i]] ? item[ARTIST_TYPES[i]].split(MULTI_SPLIT_REGEX) : undefined;
item[idsKey] = ids;
}

if (undefined!=strings && ids.length>0 && ids.length==strings.length) {
item[ARTIST_TYPES[i]+"_id"]=ids[0];
item[ARTIST_TYPES[i]] = strings[0];
if (lmsOptions.showAllArtists) {
item[ARTIST_TYPES[i]+"s"] = strings;
if (undefined!=strings && ids.length>0 && ids.length==strings.length) {
item[ARTIST_TYPES[i]+"_id"]=ids[0];
item[ARTIST_TYPES[i]] = strings[0];
if (lmsOptions.showAllArtists) {
item[ARTIST_TYPES[i]+"s"] = strings;
}
}
}
}
Expand Down

0 comments on commit 27b0eec

Please sign in to comment.