The Free Software Media System - Server Backend & API
fix theme videos
Luke Pulverenti7760f022af82
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.csindex 7f4db5a89f..1abbce4084 100644--- a/MediaBrowser.Api/ApiEntryPoint.cs+++ b/MediaBrowser.Api/ApiEntryPoint.cs@@ -709,7 +709,10 @@ namespace MediaBrowser.Apipublic void StartKillTimer(TimerCallback callback, int intervalMs){- CheckHasExited();+ if (HasExited)+ {+ return;+ }lock (_timerLock){@@ -728,7 +731,10 @@ namespace MediaBrowser.Apipublic void ChangeKillTimerIfStarted(){- CheckHasExited();+ if (HasExited)+ {+ return;+ }lock (_timerLock){@@ -741,14 +747,6 @@ namespace MediaBrowser.Api}}}-- private void CheckHasExited()- {- if (HasExited)- {- throw new ObjectDisposedException("Job");- }- }}/// <summary>diff --git a/MediaBrowser.Controller/Entities/UserView.cs b/MediaBrowser.Controller/Entities/UserView.csindex c5b65f5a84..940e99f128 100644--- a/MediaBrowser.Controller/Entities/UserView.cs+++ b/MediaBrowser.Controller/Entities/UserView.cs@@ -17,7 +17,7 @@ namespace MediaBrowser.Controller.Entitiespublic Guid DisplayParentId { get; set; }public Guid? UserId { get; set; }-+public static ITVSeriesManager TVSeriesManager;public static IPlaylistManager PlaylistManager;@@ -40,7 +40,7 @@ namespace MediaBrowser.Controller.Entities}return list;}-+public override Task<QueryResult<BaseItem>> GetItems(InternalItemsQuery query){var parent = this as Folder;@@ -146,6 +146,11 @@ namespace MediaBrowser.Controller.Entitiesreturn types.Contains(viewType ?? string.Empty, StringComparer.OrdinalIgnoreCase);}+ protected override Task ValidateChildrenInternal(IProgress<double> progress, System.Threading.CancellationToken cancellationToken, bool recursive, bool refreshChildMetadata, Providers.MetadataRefreshOptions refreshOptions, Providers.IDirectoryService directoryService)+ {+ return Task.FromResult(true);+ }+[IgnoreDataMember]public override bool SupportsPeople{diff --git a/MediaBrowser.Model/Configuration/ChapterOptions.cs b/MediaBrowser.Model/Configuration/ChapterOptions.csindex fd39307040..f9ff6b4f9f 100644--- a/MediaBrowser.Model/Configuration/ChapterOptions.cs+++ b/MediaBrowser.Model/Configuration/ChapterOptions.cs@@ -13,11 +13,10 @@public string[] DisabledFetchers { get; set; }public bool ExtractDuringLibraryScan { get; set; }-+public ChapterOptions(){DownloadMovieChapters = true;- ExtractDuringLibraryScan = true;DisabledFetchers = new string[] { };FetcherOrder = new string[] { };diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex ec024e87c3..d36174f65f 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -235,6 +235,7 @@ namespace MediaBrowser.Model.Configurationpublic string[] Migrations { get; set; }public int MigrationVersion { get; set; }+ public bool EnableImagePreDownloading { get; set; }/// <summary>/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.diff --git a/MediaBrowser.Providers/Manager/ItemImageProvider.cs b/MediaBrowser.Providers/Manager/ItemImageProvider.csindex f13fb26136..0533e6ca08 100644--- a/MediaBrowser.Providers/Manager/ItemImageProvider.cs+++ b/MediaBrowser.Providers/Manager/ItemImageProvider.cs@@ -17,6 +17,7 @@ using System.Net;using System.Threading;using System.Threading.Tasks;using CommonIO;+using MediaBrowser.Controller.Entities.Audio;using MediaBrowser.Model.MediaInfo;namespace MediaBrowser.Providers.Manager@@ -510,6 +511,15 @@ namespace MediaBrowser.Providers.Managerreturn true;}+ if (item is IItemByName && !(item is MusicArtist))+ {+ var hasDualAccess = item as IHasDualAccess;+ if (hasDualAccess == null || hasDualAccess.IsAccessedByName)+ {+ return !_config.Configuration.EnableImagePreDownloading;+ }+ }+return false;}diff --git a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.csindex 0439964036..402fa439da 100644--- a/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs+++ b/MediaBrowser.Server.Implementations/Library/CoreResolutionIgnoreRule.cs@@ -66,7 +66,7 @@ namespace MediaBrowser.Server.Implementations.Library// Ignore hidden files and foldersif (isHidden){- if (parent != null)+ if (parent == null){var parentFolderName = Path.GetFileName(Path.GetDirectoryName(path));