diff --git a/dashboard-ui/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js b/dashboard-ui/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js index c104523b19..5ce0e60383 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js +++ b/dashboard-ui/bower_components/emby-webcomponents/playlisteditor/playlisteditor.js @@ -127,6 +127,12 @@ select.innerHTML = html; select.value = userSettings.get('playlisteditor-lastplaylistid') || ''; + + // If the value is empty set it again, in case we tried to set a lastplaylistid that is no longer valid + if (!select.value) { + select.value = ''; + } + triggerChange(select); loading.hide(); diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index 375dcc4931..90c0b25add 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -460,7 +460,7 @@ } if (item.MediaSources && item.MediaSources.length) { - renderMediaSources(page, item); + renderMediaSources(page, user, item); } var chapters = item.Chapters || []; @@ -1704,11 +1704,11 @@ } } - function renderMediaSources(page, item) { + function renderMediaSources(page, user, item) { var html = item.MediaSources.map(function (v) { - return getMediaSourceHtml(item, v); + return getMediaSourceHtml(user, item, v); }).join('
'); @@ -1720,7 +1720,7 @@ mediaInfoContent.innerHTML = html; } - function getMediaSourceHtml(item, version) { + function getMediaSourceHtml(user, item, version) { var html = ''; @@ -1848,7 +1848,7 @@ //html += '