|
|
@ -65,8 +65,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
|
|
|
|
|
|
|
|
|
|
|
var list = new List<Folder>();
|
|
|
|
var list = new List<Folder>();
|
|
|
|
|
|
|
|
|
|
|
|
if (_config.Configuration.EnableUserSpecificUserViews)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
foreach (var folder in standaloneFolders)
|
|
|
|
foreach (var folder in standaloneFolders)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var collectionFolder = folder as ICollectionFolder;
|
|
|
|
var collectionFolder = folder as ICollectionFolder;
|
|
|
@ -85,11 +83,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
|
|
|
list.Add(folder);
|
|
|
|
list.Add(folder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
list.AddRange(standaloneFolders);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var parents = foldersWithViewTypes.Where(i => string.Equals(i.GetViewType(user), CollectionType.TvShows, StringComparison.OrdinalIgnoreCase) || string.IsNullOrWhiteSpace(i.GetViewType(user)))
|
|
|
|
var parents = foldersWithViewTypes.Where(i => string.Equals(i.GetViewType(user), CollectionType.TvShows, StringComparison.OrdinalIgnoreCase) || string.IsNullOrWhiteSpace(i.GetViewType(user)))
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
@ -120,7 +113,8 @@ namespace MediaBrowser.Server.Implementations.Library
|
|
|
|
|
|
|
|
|
|
|
|
if (parents.Count > 0)
|
|
|
|
if (parents.Count > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
list.Add(await GetUserView(parents, list, CollectionType.Games, string.Empty, user, cancellationToken).ConfigureAwait(false));
|
|
|
|
var name = _localizationManager.GetLocalizedString("ViewType" + CollectionType.Games);
|
|
|
|
|
|
|
|
list.Add(await _libraryManager.GetNamedView(name, CollectionType.Games, string.Empty, cancellationToken).ConfigureAwait(false));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
parents = foldersWithViewTypes.Where(i => string.Equals(i.GetViewType(user), CollectionType.BoxSets, StringComparison.OrdinalIgnoreCase))
|
|
|
|
parents = foldersWithViewTypes.Where(i => string.Equals(i.GetViewType(user), CollectionType.BoxSets, StringComparison.OrdinalIgnoreCase))
|
|
|
@ -128,7 +122,8 @@ namespace MediaBrowser.Server.Implementations.Library
|
|
|
|
|
|
|
|
|
|
|
|
if (parents.Count > 0)
|
|
|
|
if (parents.Count > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
list.Add(await GetUserView(parents, list, CollectionType.BoxSets, string.Empty, user, cancellationToken).ConfigureAwait(false));
|
|
|
|
var name = _localizationManager.GetLocalizedString("ViewType" + CollectionType.BoxSets);
|
|
|
|
|
|
|
|
list.Add(await _libraryManager.GetNamedView(name, CollectionType.BoxSets, string.Empty, cancellationToken).ConfigureAwait(false));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
parents = foldersWithViewTypes.Where(i => string.Equals(i.GetViewType(user), CollectionType.Playlists, StringComparison.OrdinalIgnoreCase))
|
|
|
|
parents = foldersWithViewTypes.Where(i => string.Equals(i.GetViewType(user), CollectionType.Playlists, StringComparison.OrdinalIgnoreCase))
|
|
|
|