update plugin pages

This commit is contained in:
Luke Pulverenti
2016-03-18 02:36:58 -04:00
parent 79dc9f29d9
commit b84f178467
8 changed files with 79 additions and 17 deletions

View File

@@ -201,10 +201,10 @@ namespace MediaBrowser.Api.Library
var rootFolderPath = _appPaths.DefaultUserViewsPath;
var virtualFolderPath = Path.Combine(rootFolderPath, name);
if (_fileSystem.DirectoryExists(virtualFolderPath))
while (_fileSystem.DirectoryExists(virtualFolderPath))
{
throw new ArgumentException("There is already a media library with the name " + name + ".");
name += "1";
virtualFolderPath = Path.Combine(rootFolderPath, name);
}
if (request.Paths != null)
@@ -236,7 +236,7 @@ namespace MediaBrowser.Api.Library
{
foreach (var path in request.Paths)
{
LibraryHelpers.AddMediaPath(_fileSystem, request.Name, path, _appPaths);
LibraryHelpers.AddMediaPath(_fileSystem, name, path, _appPaths);
}
}
}