Skip to content

Commit

Permalink
dfhdh
Browse files Browse the repository at this point in the history
  • Loading branch information
fatg3erman committed Mar 9, 2024
1 parent 0771edc commit d762de9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ui/collectionhelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,15 @@ var collectionHelper = function() {
if (rdata && rdata.hasOwnProperty('modifiedartists')) {
$('#emptycollection').remove();
$.each(rdata.modifiedartists, function(i,v) {
// The only thing to do with artists is to add them in if they don't exist
// NOTE. Do this AFTER inserting new albums, because if we're doing albumbyartist with banners showing
// then the insertAfter logic will be wrong if we've already inserted the artist banner.
if ($('.openmenu[name="'+v.id+'"]').length == 0 && $('#'+v.id).length == 0) {
uiHelper.insertArtist(v);
try {
// The only thing to do with artists is to add them in if they don't exist
// NOTE. Do this AFTER inserting new albums, because if we're doing albumbyartist with banners showing
// then the insertAfter logic will be wrong if we've already inserted the artist banner.
if ($('.openmenu[name="'+v.id+'"]').length == 0 && $('#'+v.id).length == 0) {
uiHelper.insertArtist(v);
}
} catch (err) {

}
});
}
Expand Down

0 comments on commit d762de9

Please sign in to comment.