support conditions with direct play profiles

This commit is contained in:
Luke Pulverenti
2014-03-22 14:25:03 -04:00
parent 662929fe8b
commit 24246ba85f
8 changed files with 332 additions and 95 deletions

View File

@@ -180,7 +180,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
result.StatusMessage = string.Empty;
return;
}
if (fileExists || otherDuplicatePaths.Count > 0)
{
result.Status = FileSortingStatus.SkippedExisting;
@@ -453,24 +453,22 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
private bool IsSameEpisode(string sourcePath, string newPath)
{
var sourceFileInfo = new FileInfo(sourcePath);
var destinationFileInfo = new FileInfo(newPath);
FileInfo sourceFileInfo = new FileInfo(sourcePath);
FileInfo destinationFileInfo = new FileInfo(newPath);
try
try
{
if (sourceFileInfo.Length == destinationFileInfo.Length)
{
if (sourceFileInfo.Length == destinationFileInfo.Length)
{
return true;
}
return true;
}
catch (FileNotFoundException)
{
return false;
}
}
catch (FileNotFoundException)
{
return false;
}
return false;
}
}
}