From 6802a45d77584cf42d30a3c2d42b258145ba1cca Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 22 Jul 2013 19:59:28 -0400 Subject: [PATCH] Add header links for music videos --- dashboard-ui/scripts/Itemdetailpage.js | 2 +- dashboard-ui/scripts/librarybrowser.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js index 5379aef2e4..425707b1cf 100644 --- a/dashboard-ui/scripts/Itemdetailpage.js +++ b/dashboard-ui/scripts/Itemdetailpage.js @@ -226,7 +226,7 @@ $('#players', page).hide(); } - if (item.Type == "Audio" && item.Artists && item.Artists.length) { + if ((item.Type == "Audio" || item.Type == "MusicVideo") && item.Artists && item.Artists.length) { $('#artist', page).show().html('Artist:  ' + item.Artists[0] + '').trigger('create'); } else { $('#artist', page).hide(); diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 5b3eb37aee..fa60db61c4 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -747,6 +747,9 @@ else if (item.AlbumArtist && item.Type == "MusicAlbum") { html.push('' + item.AlbumArtist + ''); } + else if (item.Artists && item.Artists.length && item.Type == "MusicVideo") { + html.push('' + item.Artists[0] + ''); + } else if (item.SeriesName && item.Type == "Episode") { html.push('' + item.SeriesName + ''); @@ -760,8 +763,12 @@ html.push('Season ' + item.ParentIndexNumber + ''); } - else if (item.Album && item.Type == "Audio" && item.ParentId) { - html.push('' + item.Album + ''); + else if (item.Album && item.Type == "Audio" && (item.AlbumId || item.ParentId)) { + html.push('' + item.Album + ''); + + } + else if (item.Album && item.Type == "MusicVideo" && item.AlbumId) { + html.push('' + item.Album + ''); } else if (item.AlbumArtist && item.Type == "MusicAlbum") {