From c64474f0460450cc4b96033efd543174eb53b94b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 26 Mar 2015 00:44:24 -0400 Subject: [PATCH] subtitle parsing fixes --- dashboard-ui/scripts/indexpage.js | 2 +- dashboard-ui/scripts/mediaplayer.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/indexpage.js b/dashboard-ui/scripts/indexpage.js index 917ca33e79..0d2bccb645 100644 --- a/dashboard-ui/scripts/indexpage.js +++ b/dashboard-ui/scripts/indexpage.js @@ -221,7 +221,7 @@ html += ''; - html += '
'; + html += '
'; html += LibraryBrowser.getPosterViewHtml({ items: items, shape: shape, diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index b8b7ab5d4c..f562afbc39 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -589,6 +589,11 @@ throw new Error("Unrecognized media type"); } + if (item.IsPlaceHolder) { + showPlaybackInfoErrorMessage('PlaceHolder'); + return; + } + var mediaSource; ApiClient.getJSON(ApiClient.getUrl('Items/' + item.Id + '/PlaybackInfo', {