The Free Software Media System - Server Backend & API
show messages the first time folder rips are streamed
Luke Pulverenti2765ff58bcf6
diff --git a/MediaBrowser.Api/Library/LibraryHelpers.cs b/MediaBrowser.Api/Library/LibraryHelpers.csindex 8abdc4df5a..ab7449273d 100644--- a/MediaBrowser.Api/Library/LibraryHelpers.cs+++ b/MediaBrowser.Api/Library/LibraryHelpers.cs@@ -182,6 +182,8 @@ namespace MediaBrowser.Api.Librarythrow new ArgumentException(string.Format("The path cannot be added to the library because {0} already exists.", duplicate));}+ // Don't allow duplicate sub-paths within the same user library, or it will result in duplicate items+ // See comments in IsNewPathValidduplicate = Directory.EnumerateFiles(currentViewRootFolderPath, "*.lnk", SearchOption.AllDirectories).Select(FileSystem.ResolveShortcut).FirstOrDefault(p => !IsNewPathValid(mediaPath, p, true));@@ -221,7 +223,7 @@ namespace MediaBrowser.Api.Libraryreturn true;}- // Validate the D:\Movies\Kids scenario+ // If enforceSubPathRestriction is true, validate the D:\Movies\Kids scenarioif (enforceSubPathRestriction && newPath.StartsWith(existingPath.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)){return false;