Tweaked disk access a little bit more

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-21 10:42:40 -04:00
parent 9029d939f3
commit 76d365fcf9
15 changed files with 44 additions and 41 deletions

View File

@@ -23,9 +23,8 @@ namespace MediaBrowser.Controller.Library
{
PreBeginResolveEventArgs args = new PreBeginResolveEventArgs()
{
Path = path,
Parent = parent,
FileData = fileData,
File = new LazyFileInfo() { Path = path, FileInfo = fileData },
Cancel = false
};
@@ -101,9 +100,8 @@ namespace MediaBrowser.Controller.Library
ItemResolveEventArgs args = new ItemResolveEventArgs()
{
Path = path,
File = new LazyFileInfo() { Path = path, FileInfo = fileData },
FileSystemChildren = fileSystemChildren,
FileData = fileData,
Parent = parent,
Cancel = false
};
@@ -296,8 +294,7 @@ namespace MediaBrowser.Controller.Library
item.DateModified = Directory.GetLastAccessTime(path);
ItemResolveEventArgs args = new ItemResolveEventArgs();
args.Path = path;
args.FileData = FileData.GetFileData(path);
args.File = new LazyFileInfo() { Path = path };
args.FileSystemChildren = ConvertFileSystemEntries(Directory.GetFileSystemEntries(path, "*", SearchOption.TopDirectoryOnly));
await Kernel.Instance.ExecuteMetadataProviders(item, args).ConfigureAwait(false);