aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/FileOrganization
diff options
context:
space:
mode:
author7illusions <z@7illusions.com>2014-03-12 21:04:37 +0100
committer7illusions <z@7illusions.com>2014-03-12 21:04:37 +0100
commitb2df3d648d64982528907bbd716b2c1984fb1345 (patch)
tree7bc6bed22253d3dcc468e155c74e30bae7a468fb /MediaBrowser.Server.Implementations/FileOrganization
parent438b0078ccd07e39cbf95b737d676a39192d064c (diff)
parent37a69d78e1064afaa14e333abd0ede71b92dd216 (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Server.Implementations/FileOrganization')
-rw-r--r--MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs b/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs
index e5ffd639b..5d326f1ca 100644
--- a/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs
+++ b/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs
@@ -173,25 +173,23 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
if (!overwriteExisting)
{
- if (fileExists || otherDuplicatePaths.Count > 0)
+ if (options.CopyOriginalFile && fileExists && IsSameEpisode(sourcePath, newPath))
{
+ _logger.Info("File {0} already copied to new path {1}, stopping organization", sourcePath, newPath);
result.Status = FileSortingStatus.SkippedExisting;
result.StatusMessage = string.Empty;
- result.DuplicatePaths = otherDuplicatePaths;
return;
}
-
- if (options.CopyOriginalFile && fileExists && IsSameEpisode(sourcePath, newPath))
+
+ if (fileExists || otherDuplicatePaths.Count > 0)
{
- _logger.Info("File {0} already copied to new path {1}, stopping organization", sourcePath, newPath);
result.Status = FileSortingStatus.SkippedExisting;
result.StatusMessage = string.Empty;
+ result.DuplicatePaths = otherDuplicatePaths;
return;
}
}
-
-
PerformFileSorting(options, result);
if (overwriteExisting)