Skip to content

Commit

Permalink
Merge pull request #2572 from Ullmie02/music_video_fix
Browse files Browse the repository at this point in the history
Fix music videos on artist and album page
  • Loading branch information
thornbill committed Apr 9, 2021
2 parents f8db818 + 025ec66 commit e813fa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/controllers/itemDetails/index.js
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/itembynamedetailpage.js
Expand Up @@ -146,7 +146,7 @@ function renderSection(page, item, element, type) {
Limit: 10,
SortBy: 'SortName'
}, {
shape: 'overflowPortrait',
shape: 'overflowBackdrop',
showTitle: true,
centerText: true,
overlayPlayButton: true
Expand Down Expand Up @@ -327,7 +327,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;
}
}

Expand Down

0 comments on commit e813fa7

Please sign in to comment.