aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-05-04 15:00:39 -0400
committerLuke <luke.pulverenti@gmail.com>2016-05-04 15:00:39 -0400
commitc27e4154717f61b2cafd57bdbe590c2b1875b136 (patch)
treec1ec1b7610302300059cdc0cc686d2838b211f80 /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parent674538d73a54a0118ba9cc5f27cc8217aac4c46e (diff)
parent68ae463381bbb653848a146293e0cde40900c88b (diff)
Merge pull request #1709 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index f6e2ddb8e..72132c4be 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -909,7 +909,10 @@ namespace MediaBrowser.Server.Implementations.Library
throw new ArgumentNullException("name");
}
- var validFilename = _fileSystem.GetValidFilename(name).Trim();
+ // Trim the period at the end because windows will have a hard time with that
+ var validFilename = _fileSystem.GetValidFilename(name)
+ .Trim()
+ .TrimEnd('.');
string subFolderPrefix = null;