fixes #1048
This commit is contained in:
parent
c87dd6008a
commit
f91c30a407
|
@ -2,7 +2,6 @@
|
|||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
|
@ -53,8 +52,6 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
|||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.ToList();
|
||||
|
||||
var returnArtists = new List<MusicArtist>(allArtists.Count);
|
||||
|
||||
var numComplete = 0;
|
||||
var numArtists = allArtists.Count;
|
||||
|
||||
|
@ -67,8 +64,6 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
|
|||
var artistItem = _libraryManager.GetArtist(artist);
|
||||
|
||||
await artistItem.RefreshMetadata(cancellationToken).ConfigureAwait(false);
|
||||
|
||||
returnArtists.Add(artistItem);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
|
|
|
@ -181,7 +181,6 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
|||
}
|
||||
|
||||
var list = new List<LinkedChild>();
|
||||
var itemList = new List<BaseItem>();
|
||||
|
||||
var items = GetPlaylistItems(itemIds, playlist.MediaType, user)
|
||||
.Where(i => i.SupportsAddingToPlaylist)
|
||||
|
@ -189,7 +188,6 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
|||
|
||||
foreach (var item in items)
|
||||
{
|
||||
itemList.Add(item);
|
||||
list.Add(LinkedChild.Create(item));
|
||||
}
|
||||
|
||||
|
|
|
@ -825,17 +825,8 @@ namespace MediaBrowser.Server.Implementations.Sync
|
|||
|
||||
if (item != null)
|
||||
{
|
||||
var usersWithAccess = new List<User>();
|
||||
|
||||
foreach (var user in users)
|
||||
{
|
||||
if (IsUserVisible(item, user))
|
||||
{
|
||||
usersWithAccess.Add(user);
|
||||
}
|
||||
}
|
||||
|
||||
response.ItemUserAccess[itemId] = users
|
||||
.Where(i => IsUserVisible(item, i))
|
||||
.Select(i => i.Id.ToString("N"))
|
||||
.OrderBy(i => i)
|
||||
.ToList();
|
||||
|
|
Loading…
Reference in New Issue
Block a user