From 32d152150b9ffc65ae49d318cb36a0ecaf2e0e4c Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 9 Apr 2021 13:15:51 -0400 Subject: [PATCH] Merge pull request #2572 from Ullmie02/music_video_fix Fix music videos on artist and album page (cherry picked from commit e813fa7b64e5a0233ace69139c9a8bae261cda69) Signed-off-by: Joshua M. Boniface --- src/controllers/itemDetails/index.js | 2 +- src/scripts/itembynamedetailpage.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index c954652598..bea029e7b4 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -1795,7 +1795,7 @@ function renderMusicVideos(page, item, user) { }).then(function (result) { if (result.Items.length) { page.querySelector('#musicVideosCollapsible').classList.remove('hide'); - const musicVideosContent = page.querySelector('.musicVideosContent'); + const musicVideosContent = page.querySelector('#musicVideosContent'); musicVideosContent.innerHTML = getVideosHtml(result.Items); imageLoader.lazyChildren(musicVideosContent); } else { diff --git a/src/scripts/itembynamedetailpage.js b/src/scripts/itembynamedetailpage.js index d54dce3fd2..7f92b65fbc 100644 --- a/src/scripts/itembynamedetailpage.js +++ b/src/scripts/itembynamedetailpage.js @@ -146,7 +146,7 @@ function renderSection(page, item, element, type) { Limit: 10, SortBy: 'SortName' }, { - shape: 'overflowPortrait', + shape: 'overflowBackdrop', showTitle: true, centerText: true, overlayPlayButton: true @@ -329,7 +329,7 @@ function addCurrentItemToQuery(query, item) { } else if (item.Type === 'Studio') { query.StudioIds = item.Id; } else if (item.Type === 'MusicArtist') { - query.AlbumArtistIds = item.Id; + query.ArtistIds = item.Id; } }