The Free Software Media System - Server Backend & API
update localization
Luke Pulverentiba2574a03b76
diff --git a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.csindex ec8dd8699b..0ed87bbff3 100644--- a/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs@@ -424,6 +424,11 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTVprivate async Task RecordStream(TimerInfo timer, CancellationToken cancellationToken){+ if (timer == null)+ {+ throw new ArgumentNullException("timer");+ }+var mediaStreamInfo = await GetChannelStream(timer.ChannelId, null, CancellationToken.None);var duration = (timer.EndDate - RecordingHelper.GetStartTime(timer)).TotalSeconds + timer.PrePaddingSeconds;diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.csindex a4649aeca3..47fbf3c307 100644--- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs+++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs@@ -271,9 +271,6 @@ namespace MediaBrowser.WebDashboard.Apihtml = html.Replace("<html>", "<html data-culture=\"" + localizationCulture + "\" lang=\"" + lang + "\">");}- html = html.Replace("<body>", "<body><paper-drawer-panel class=\"mainDrawerPanel mainDrawerPanelPreInit\" forceNarrow><div class=\"mainDrawer\" drawer></div><div class=\"mainDrawerPanelContent\" main><!--<div class=\"pageContainer\">")- .Replace("</body>", "</div>--></div></paper-drawer-panel></body>");-if (enableMinification){try@@ -300,6 +297,9 @@ namespace MediaBrowser.WebDashboard.Api_logger.ErrorException("Error minifying html", ex);}}++ html = html.Replace("<body>", "<body><paper-drawer-panel class=\"mainDrawerPanel mainDrawerPanelPreInit\" forceNarrow><div class=\"mainDrawer\" drawer></div><div class=\"mainDrawerPanelContent\" main><!--<div class=\"pageContainer\">")+ .Replace("</body>", "</div>--></div></paper-drawer-panel></body>");}var versionString = !string.Equals(mode, "cordova", StringComparison.OrdinalIgnoreCase) ? "?v=" + appVersion : string.Empty;@@ -316,7 +316,7 @@ namespace MediaBrowser.WebDashboard.Apihtml = html.Replace("<head>", "<head>" + GetMetaTags(mode) + GetCommonCss(mode, appVersion));- html = html.Replace("</body>", GetInitialJavascript(mode, appVersion) + importsHtml + GetCommonJavascript(mode, appVersion)) + "</body>";+ html = html.Replace("</body>", GetInitialJavascript(mode, appVersion) + importsHtml + GetCommonJavascript(mode, appVersion) + "</body>");var bytes = Encoding.UTF8.GetBytes(html);