|
|
@ -118,9 +118,6 @@ namespace MediaBrowser.Controller
|
|
|
|
//watch the root folder children for changes
|
|
|
|
//watch the root folder children for changes
|
|
|
|
RootFolder.ChildrenChanged += RootFolder_ChildrenChanged;
|
|
|
|
RootFolder.ChildrenChanged += RootFolder_ChildrenChanged;
|
|
|
|
|
|
|
|
|
|
|
|
System.Threading.Thread.Sleep(25000);
|
|
|
|
|
|
|
|
var allChildren = RootFolder.RecursiveChildren;
|
|
|
|
|
|
|
|
Logger.LogInfo(string.Format("Loading complete. Movies: {0} Episodes: {1}", allChildren.OfType<Entities.Movies.Movie>().Count(), allChildren.OfType<Entities.TV.Episode>().Count()));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected override void OnComposablePartsLoaded()
|
|
|
|
protected override void OnComposablePartsLoaded()
|
|
|
@ -180,6 +177,8 @@ namespace MediaBrowser.Controller
|
|
|
|
//re-start the directory watchers
|
|
|
|
//re-start the directory watchers
|
|
|
|
DirectoryWatchers.Stop();
|
|
|
|
DirectoryWatchers.Stop();
|
|
|
|
DirectoryWatchers.Start();
|
|
|
|
DirectoryWatchers.Start();
|
|
|
|
|
|
|
|
var allChildren = RootFolder.RecursiveChildren;
|
|
|
|
|
|
|
|
Logger.LogInfo(string.Format("Loading complete. Movies: {0} Episodes: {1}", allChildren.OfType<Entities.Movies.Movie>().Count(), allChildren.OfType<Entities.TV.Episode>().Count()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -328,7 +327,7 @@ namespace MediaBrowser.Controller
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Runs all metadata providers for an entity
|
|
|
|
/// Runs all metadata providers for an entity
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
internal async Task ExecuteMetadataProviders(BaseEntity item, ItemResolveEventArgs args, bool allowInternetProviders = true)
|
|
|
|
internal async Task ExecuteMetadataProviders(BaseEntity item, bool allowInternetProviders = true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Run them sequentially in order of priority
|
|
|
|
// Run them sequentially in order of priority
|
|
|
|
for (int i = 0; i < MetadataProviders.Length; i++)
|
|
|
|
for (int i = 0; i < MetadataProviders.Length; i++)
|
|
|
@ -349,7 +348,7 @@ namespace MediaBrowser.Controller
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await provider.FetchAsync(item, args).ConfigureAwait(false);
|
|
|
|
await provider.FetchAsync(item, item.ResolveArgs).ConfigureAwait(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|