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