fixes #353 - Path not found stopping library scan

This commit is contained in:
Luke Pulverenti 2013-06-24 21:32:21 -04:00
parent 92cd71143d
commit db607a618b

View File

@ -536,6 +536,8 @@ namespace MediaBrowser.Server.Implementations.Library
Parallel.ForEach(files, f => Parallel.ForEach(files, f =>
{ {
try try
{
if (f.Exists)
{ {
var item = ResolvePath(f, parent) as T; var item = ResolvePath(f, parent) as T;
@ -547,6 +549,7 @@ namespace MediaBrowser.Server.Implementations.Library
} }
} }
} }
}
catch (Exception ex) catch (Exception ex)
{ {
_logger.ErrorException("Error resolving path {0}", ex, f.FullName); _logger.ErrorException("Error resolving path {0}", ex, f.FullName);