aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-06 00:21:23 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-06 00:21:23 -0400
commit58eb50095676ec8bb4f7d4e1d0fc766dd3280305 (patch)
tree9e183c21f39db3f826dcfecde24df6b16b0037ca /MediaBrowser.Server.Implementations/Library/LibraryManager.cs
parent195391aba0aee34d819b95cc60d271c0ab6b048e (diff)
fixes #914 - Add option to save metadata hidden
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs22
1 files changed, 1 insertions, 21 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index a3e86c667..076da4352 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
@@ -861,13 +861,7 @@ namespace MediaBrowser.Server.Implementations.Library
if (!fileInfo.Exists)
{
- Directory.CreateDirectory(path);
- fileInfo = new DirectoryInfo(path);
-
- if (!fileInfo.Exists)
- {
- throw new IOException("Path not created: " + path);
- }
+ fileInfo = Directory.CreateDirectory(path);
isNew = true;
}
@@ -1470,20 +1464,6 @@ namespace MediaBrowser.Server.Implementations.Library
return collectionTypes.Count == 1 ? collectionTypes[0] : null;
}
-
- public IEnumerable<string> GetAllArtists()
- {
- return GetAllArtists(RootFolder.RecursiveChildren);
- }
-
- public IEnumerable<string> GetAllArtists(IEnumerable<BaseItem> items)
- {
- return items
- .OfType<Audio>()
- .SelectMany(i => i.AllArtists)
- .Distinct(StringComparer.OrdinalIgnoreCase);
- }
-
public Task<UserView> GetNamedView(string name, string type, string sortName, CancellationToken cancellationToken)
{
return GetNamedView(name, null, type, sortName, cancellationToken);