aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-12 15:56:12 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-12 15:56:12 -0400
commitc4f587dd94a4f21e033a6643493a76e5838f283e (patch)
tree933a8cd882c0ab8bdb2f63ac39c93f76ff3ce8e3 /MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs
parenta5b807e433f0d41349ed9dab8911aa4a6f55cbab (diff)
live tv stream adjustments, add additional dlna params
Diffstat (limited to 'MediaBrowser.Server.Implementations/FileOrganization/EpisodeFileOrganizer.cs')
-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)