The Free Software Media System - Server Backend & API
update plugin installs
Luke Pulverenti64a683e84dac
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex d36174f65f..3bee92059b 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -588,6 +588,27 @@ namespace MediaBrowser.Model.Configuration}},DisabledMetadataFetchers = new []{ "TheMovieDb" }+ },++ new MetadataOptions(0, 1280)+ {+ ItemType = "Episode",+ ImageOptions = new []+ {+ new ImageOption+ {+ Limit = 0,+ MinWidth = 1280,+ Type = ImageType.Backdrop+ },++ new ImageOption+ {+ Limit = 1,+ Type = ImageType.Primary+ }+ },+ DisabledImageFetchers = new []{ "TheMovieDb" }}};}diff --git a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.csindex 75247e95da..434578718a 100644--- a/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs@@ -82,7 +82,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.ListingsUserAgent = UserAgent,CancellationToken = cancellationToken,// The data can be large so give it some extra time- TimeoutMs = 120000,+ TimeoutMs = 60000,LogErrorResponseBody = true};diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.csindex f55d19a5da..09f5f732a0 100644--- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs+++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs@@ -1208,6 +1208,8 @@ namespace MediaBrowser.Server.Implementations.LiveTvvar guideDays = GetGuideDays(list.Count);+ _logger.Info("Refreshing guide with {0} days of guide data", guideDays);+cancellationToken.ThrowIfCancellationRequested();foreach (var currentChannel in list)@@ -1291,13 +1293,14 @@ namespace MediaBrowser.Server.Implementations.LiveTv}}+ private const int MaxGuideDays = 14;private double GetGuideDays(int channelCount){var config = GetConfiguration();if (config.GuideDays.HasValue){- return config.GuideDays.Value;+ return Math.Max(1, Math.Min(config.GuideDays.Value, MaxGuideDays));}var programsPerDay = channelCount * 48;@@ -1306,7 +1309,7 @@ namespace MediaBrowser.Server.Implementations.LiveTvvar days = Math.Round(((double)maxPrograms) / programsPerDay);- return Math.Max(3, Math.Min(days, 14));+ return Math.Max(3, Math.Min(days, MaxGuideDays));}private async Task<IEnumerable<Tuple<string, ChannelInfo>>> GetChannels(ILiveTvService service, CancellationToken cancellationToken)diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.csindex 3108c2b9a6..ca580d19f3 100644--- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs+++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs@@ -333,9 +333,6 @@ namespace MediaBrowser.WebDashboard.Apiprivate string ModifyForCordova(string html){- // Strip everything between CORDOVA_EXCLUDE_START and CORDOVA_EXCLUDE_END- html = ReplaceBetween(html, "<!--CORDOVA_EXCLUDE_START-->", "<!--CORDOVA_EXCLUDE_END-->", string.Empty);-// Replace CORDOVA_REPLACE_SUPPORTER_SUBMIT_STARThtml = ReplaceBetween(html, "<!--CORDOVA_REPLACE_SUPPORTER_SUBMIT_START-->", "<!--CORDOVA_REPLACE_SUPPORTER_SUBMIT_END-->", "<i class=\"fa fa-check\"></i><span>${ButtonPurchase}</span>");