restore library editor

This commit is contained in:
Luke Pulverenti
2015-10-15 23:17:42 -04:00
parent bd0ad4a5cd
commit 2c5ee7e2cf
3 changed files with 15 additions and 8 deletions

View File

@@ -204,9 +204,17 @@ namespace MediaBrowser.Api.Library
if (_fileSystem.DirectoryExists(virtualFolderPath))
{
throw new ArgumentException("There is already a media collection with the name " + name + ".");
throw new ArgumentException("There is already a media library with the name " + name + ".");
}
if (!string.IsNullOrWhiteSpace(request.Path))
{
if (!_fileSystem.DirectoryExists(request.Path))
{
throw new DirectoryNotFoundException("The specified folder does not exist.");
}
}
_libraryMonitor.Stop();
try