aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-09-28 23:35:50 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-09-28 23:35:50 -0400
commit0d6580baf35d161bc3e75fa1563eaaa6436f4979 (patch)
tree77f7fa78e1eff955737a3112f2603f55f9eb45eb /MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs
parent8327094df37a62587f3bb91124066bd4fcbe8d15 (diff)
update media sync
Diffstat (limited to 'MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs15
1 files changed, 2 insertions, 13 deletions
diff --git a/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs b/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs
index 81f767e91..12cf86c17 100644
--- a/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs
+++ b/MediaBrowser.Server.Implementations/FileOrganization/TvFolderOrganizer.cs
@@ -62,7 +62,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
try
{
var result = await organizer.OrganizeEpisodeFile(file.FullName, options, options.OverwriteExistingEpisodes, cancellationToken).ConfigureAwait(false);
- if (result.Status == FileSortingStatus.Success && !processedFolders.Contains(file.DirectoryName))
+ if (result.Status == FileSortingStatus.Success && !processedFolders.Contains(file.DirectoryName, StringComparer.OrdinalIgnoreCase))
{
processedFolders.Add(file.DirectoryName);
}
@@ -188,18 +188,7 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
/// <param name="watchLocations">A list of folders.</param>
private bool IsWatchFolder(string path, IEnumerable<string> watchLocations)
{
- // Use GetFullPath to resolve 8.3 naming and path indirections
- path = Path.GetFullPath(path);
-
- foreach (var watchFolder in watchLocations)
- {
- if (String.Equals(path, Path.GetFullPath(watchFolder), StringComparison.OrdinalIgnoreCase))
- {
- return true;
- }
- }
-
- return false;
+ return watchLocations.Contains(path, StringComparer.OrdinalIgnoreCase);
}
}
}