fix theme videos

This commit is contained in:
Luke Pulverenti 2015-11-08 00:04:38 -05:00
parent 1b0b7ac6a5
commit 7760f022af
6 changed files with 28 additions and 15 deletions

View file

@ -709,7 +709,10 @@ namespace MediaBrowser.Api
public void StartKillTimer(TimerCallback callback, int intervalMs) public void StartKillTimer(TimerCallback callback, int intervalMs)
{ {
CheckHasExited(); if (HasExited)
{
return;
}
lock (_timerLock) lock (_timerLock)
{ {
@ -728,7 +731,10 @@ namespace MediaBrowser.Api
public void ChangeKillTimerIfStarted() public void ChangeKillTimerIfStarted()
{ {
CheckHasExited(); if (HasExited)
{
return;
}
lock (_timerLock) lock (_timerLock)
{ {
@ -741,14 +747,6 @@ namespace MediaBrowser.Api
} }
} }
} }
private void CheckHasExited()
{
if (HasExited)
{
throw new ObjectDisposedException("Job");
}
}
} }
/// <summary> /// <summary>

View file

@ -146,6 +146,11 @@ namespace MediaBrowser.Controller.Entities
return types.Contains(viewType ?? string.Empty, StringComparer.OrdinalIgnoreCase); return 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] [IgnoreDataMember]
public override bool SupportsPeople public override bool SupportsPeople
{ {

View file

@ -17,7 +17,6 @@
public ChapterOptions() public ChapterOptions()
{ {
DownloadMovieChapters = true; DownloadMovieChapters = true;
ExtractDuringLibraryScan = true;
DisabledFetchers = new string[] { }; DisabledFetchers = new string[] { };
FetcherOrder = new string[] { }; FetcherOrder = new string[] { };

View file

@ -235,6 +235,7 @@ namespace MediaBrowser.Model.Configuration
public string[] Migrations { get; set; } public string[] Migrations { get; set; }
public int MigrationVersion { get; set; } public int MigrationVersion { get; set; }
public bool EnableImagePreDownloading { get; set; }
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// Initializes a new instance of the <see cref="ServerConfiguration" /> class.

View file

@ -17,6 +17,7 @@ using System.Net;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using CommonIO; using CommonIO;
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Model.MediaInfo; using MediaBrowser.Model.MediaInfo;
namespace MediaBrowser.Providers.Manager namespace MediaBrowser.Providers.Manager
@ -510,6 +511,15 @@ namespace MediaBrowser.Providers.Manager
return true; return true;
} }
if (item is IItemByName && !(item is MusicArtist))
{
var hasDualAccess = item as IHasDualAccess;
if (hasDualAccess == null || hasDualAccess.IsAccessedByName)
{
return !_config.Configuration.EnableImagePreDownloading;
}
}
return false; return false;
} }

View file

@ -66,7 +66,7 @@ namespace MediaBrowser.Server.Implementations.Library
// Ignore hidden files and folders // Ignore hidden files and folders
if (isHidden) if (isHidden)
{ {
if (parent != null) if (parent == null)
{ {
var parentFolderName = Path.GetFileName(Path.GetDirectoryName(path)); var parentFolderName = Path.GetFileName(Path.GetDirectoryName(path));