mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
fixes #914 - Add option to save metadata hidden
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user