2015-01-24 14:03:55 -05:00
|
|
|
|
using MediaBrowser.Controller.Channels;
|
|
|
|
|
using MediaBrowser.Controller.Collections;
|
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
2014-06-07 15:46:24 -04:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Controller.Library;
|
|
|
|
|
using MediaBrowser.Controller.LiveTv;
|
|
|
|
|
using MediaBrowser.Controller.Localization;
|
2014-08-01 22:34:45 -04:00
|
|
|
|
using MediaBrowser.Controller.Playlists;
|
2014-06-07 15:46:24 -04:00
|
|
|
|
using MediaBrowser.Model.Channels;
|
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
using MediaBrowser.Model.Library;
|
2014-07-13 17:03:57 -04:00
|
|
|
|
using MediaBrowser.Model.Querying;
|
2015-02-19 19:34:05 -05:00
|
|
|
|
using MoreLinq;
|
2014-06-07 15:46:24 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2015-11-02 12:25:01 -05:00
|
|
|
|
using MediaBrowser.Controller.Entities.Audio;
|
2014-06-07 15:46:24 -04:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.Library
|
|
|
|
|
{
|
|
|
|
|
public class UserViewManager : IUserViewManager
|
|
|
|
|
{
|
|
|
|
|
private readonly ILibraryManager _libraryManager;
|
|
|
|
|
private readonly ILocalizationManager _localizationManager;
|
|
|
|
|
private readonly IUserManager _userManager;
|
|
|
|
|
|
|
|
|
|
private readonly IChannelManager _channelManager;
|
|
|
|
|
private readonly ILiveTvManager _liveTvManager;
|
2015-01-24 14:03:55 -05:00
|
|
|
|
private readonly IServerConfigurationManager _config;
|
2014-06-07 15:46:24 -04:00
|
|
|
|
|
2015-10-04 15:09:13 -04:00
|
|
|
|
public UserViewManager(ILibraryManager libraryManager, ILocalizationManager localizationManager, IUserManager userManager, IChannelManager channelManager, ILiveTvManager liveTvManager, IServerConfigurationManager config)
|
2014-06-07 15:46:24 -04:00
|
|
|
|
{
|
|
|
|
|
_libraryManager = libraryManager;
|
|
|
|
|
_localizationManager = localizationManager;
|
|
|
|
|
_userManager = userManager;
|
|
|
|
|
_channelManager = channelManager;
|
|
|
|
|
_liveTvManager = liveTvManager;
|
2015-01-24 14:03:55 -05:00
|
|
|
|
_config = config;
|
2014-06-07 15:46:24 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task<IEnumerable<Folder>> GetUserViews(UserViewQuery query, CancellationToken cancellationToken)
|
|
|
|
|
{
|
2014-09-14 11:10:51 -04:00
|
|
|
|
var user = _userManager.GetUserById(query.UserId);
|
2014-06-07 15:46:24 -04:00
|
|
|
|
|
|
|
|
|
var folders = user.RootFolder
|
|
|
|
|
.GetChildren(user, true)
|
|
|
|
|
.OfType<Folder>()
|
|
|
|
|
.ToList();
|
|
|
|
|
|
2015-11-11 09:56:31 -05:00
|
|
|
|
if (!query.IncludeHidden)
|
|
|
|
|
{
|
|
|
|
|
folders = folders.Where(i =>
|
|
|
|
|
{
|
|
|
|
|
var hidden = i as IHiddenFromDisplay;
|
|
|
|
|
return hidden == null || !hidden.IsHiddenFromUser(user);
|
|
|
|
|
}).ToList();
|
|
|
|
|
}
|
|
|
|
|
|
2015-04-15 17:59:20 -04:00
|
|
|
|
var plainFolderIds = user.Configuration.PlainFolderViews.Select(i => new Guid(i)).ToList();
|
2014-06-07 15:46:24 -04:00
|
|
|
|
|
2015-01-26 11:47:15 -05:00
|
|
|
|
var standaloneFolders = folders
|
2015-05-08 15:10:53 -04:00
|
|
|
|
.Where(i => UserView.IsExcludedFromGrouping(i) || !user.IsFolderGrouped(i.Id))
|
2015-01-26 11:47:15 -05:00
|
|
|
|
.ToList();
|
2014-06-07 15:46:24 -04:00
|
|
|
|
|
2014-10-11 16:38:13 -04:00
|
|
|
|
var foldersWithViewTypes = folders
|
2014-06-07 15:46:24 -04:00
|
|
|
|
.Except(standaloneFolders)
|
2014-10-11 16:38:13 -04:00
|
|
|
|
.OfType<ICollectionFolder>()
|
2014-06-07 15:46:24 -04:00
|
|
|
|
.ToList();
|
|
|
|
|
|
2015-03-15 15:22:04 -04:00
|
|
|
|
var list = new List<Folder>();
|
|
|
|
|
|
2015-10-19 22:06:05 -04:00
|
|
|
|
var enableUserViews = _config.Configuration.EnableUserViews || user.EnableUserViews;
|
|
|
|
|
|
2015-11-14 11:58:01 -05:00
|
|
|
|
foreach (var folder in standaloneFolders)
|
2015-03-15 15:22:04 -04:00
|
|
|
|
{
|
2015-11-14 11:58:01 -05:00
|
|
|
|
var collectionFolder = folder as ICollectionFolder;
|
|
|
|
|
var folderViewType = collectionFolder == null ? null : collectionFolder.CollectionType;
|
2015-09-15 14:09:44 -04:00
|
|
|
|
|
2015-11-14 11:58:01 -05:00
|
|
|
|
if (UserView.IsUserSpecific(folder))
|
|
|
|
|
{
|
|
|
|
|
list.Add(await GetUserView(folder.Id, folder.Name, folderViewType, true, string.Empty, user, cancellationToken).ConfigureAwait(false));
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (enableUserViews)
|
|
|
|
|
{
|
|
|
|
|
if (plainFolderIds.Contains(folder.Id) && UserView.IsEligibleForEnhancedView(folderViewType))
|
2015-09-15 14:09:44 -04:00
|
|
|
|
{
|
2015-11-14 11:58:01 -05:00
|
|
|
|
list.Add(await GetUserView(folder, folderViewType, false, string.Empty, cancellationToken).ConfigureAwait(false));
|
2015-09-15 14:09:44 -04:00
|
|
|
|
}
|
2015-11-14 12:05:08 -05:00
|
|
|
|
else if (_config.Configuration.EnableSharedCollectionViewImage || UserView.EnableOriginalFolder(folderViewType))
|
2015-09-15 14:09:44 -04:00
|
|
|
|
{
|
2015-11-14 11:58:01 -05:00
|
|
|
|
list.Add(folder);
|
2015-09-15 14:09:44 -04:00
|
|
|
|
}
|
|
|
|
|
else if (!string.IsNullOrWhiteSpace(folderViewType))
|
|
|
|
|
{
|
2015-10-16 00:46:41 -04:00
|
|
|
|
list.Add(await GetUserView(folder, folderViewType, true, string.Empty, cancellationToken).ConfigureAwait(false));
|
2015-09-15 14:09:44 -04:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
list.Add(folder);
|
|
|
|
|
}
|
2015-09-14 13:28:42 -04:00
|
|
|
|
}
|
2015-11-14 11:58:01 -05:00
|
|
|
|
else
|
2015-09-14 13:28:42 -04:00
|
|
|
|
{
|
2015-11-14 11:58:01 -05:00
|
|
|
|
// TODO: Deprecate this whole block
|
|
|
|
|
if (plainFolderIds.Contains(folder.Id) && UserView.IsEligibleForEnhancedView(folderViewType))
|
2015-09-15 14:09:44 -04:00
|
|
|
|
{
|
|
|
|
|
list.Add(await GetUserView(folder.Id, folder.Name, folderViewType, false, string.Empty, user, cancellationToken).ConfigureAwait(false));
|
|
|
|
|
}
|
2015-11-14 12:05:08 -05:00
|
|
|
|
else if (_config.Configuration.EnableSharedCollectionViewImage || UserView.EnableOriginalFolder(folderViewType))
|
|
|
|
|
{
|
|
|
|
|
list.Add(folder);
|
|
|
|
|
}
|
2015-09-15 14:09:44 -04:00
|
|
|
|
else if (!string.IsNullOrWhiteSpace(folderViewType))
|
|
|
|
|
{
|
|
|
|
|
list.Add(await GetUserView(folder.Id, folder.Name, folderViewType, true, string.Empty, user, cancellationToken).ConfigureAwait(false));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
list.Add(folder);
|
|
|
|
|
}
|
2015-03-15 15:22:04 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-10-11 16:38:13 -04:00
|
|
|
|
|
2015-07-29 16:31:15 -04:00
|
|
|
|
var parents = foldersWithViewTypes.Where(i => string.Equals(i.GetViewType(user), CollectionType.TvShows, StringComparison.OrdinalIgnoreCase) || string.IsNullOrWhiteSpace(i.GetViewType(user)))
|
2015-04-15 17:59:20 -04:00
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
if (parents.Count > 0)
|
2014-06-07 15:46:24 -04:00
|
|
|
|
{
|
2015-11-11 09:56:31 -05:00
|
|
|
|
list.Add(await GetUserView(parents, CollectionType.TvShows, string.Empty, user, enableUserViews, cancellationToken).ConfigureAwait(false));
|
2014-06-07 15:46:24 -04:00
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 16:31:15 -04:00
|
|
|
|
parents = foldersWithViewTypes.Where(i => string.Equals(i.GetViewType(user), CollectionType.Movies, StringComparison.OrdinalIgnoreCase) || string.IsNullOrWhiteSpace(i.GetViewType(user)))
|
2015-04-15 17:59:20 -04:00
|
|
|
|
.ToList();
|
|
|
|
|
|
|
|
|
|
if (parents.Count > 0)
|
2014-06-07 15:46:24 -04:00
|
|
|
|
{
|
2015-11-11 09:56:31 -05:00
|
|
|
|
list.Add(await GetUserView(parents, CollectionType.Movies, string.Empty, user, enableUserViews, cancellationToken).ConfigureAwait(false));
|
2014-06-07 15:46:24 -04:00
|
|
|
|
}
|
|
|
|
|
|
2014-08-14 09:24:30 -04:00
|
|
|
|
if (user.Configuration.DisplayFoldersView)
|
|
|
|
|
{
|
2015-08-14 14:30:08 -04:00
|
|
|
|
var name = _localizationManager.GetLocalizedString("ViewType" + CollectionType.Folders);
|
|
|
|
|
list.Add(await _libraryManager.GetNamedView(name, CollectionType.Folders, string.Empty, cancellationToken).ConfigureAwait(false));
|
2014-08-14 09:24:30 -04:00
|
|
|
|
}
|
|
|
|
|
|
2014-06-07 15:46:24 -04:00
|
|
|
|
if (query.IncludeExternalContent)
|
|
|
|
|
{
|
2015-08-14 14:30:08 -04:00
|
|
|
|
var channelResult = await _channelManager.GetChannelsInternal(new ChannelQuery
|
2014-06-07 15:46:24 -04:00
|
|
|
|
{
|
|
|
|
|
UserId = query.UserId
|
|
|
|
|
|
2014-06-10 13:36:06 -04:00
|
|
|
|
}, cancellationToken).ConfigureAwait(false);
|
2014-06-07 15:46:24 -04:00
|
|
|
|
|
2014-06-30 15:24:35 -04:00
|
|
|
|
var channels = channelResult.Items;
|
|
|
|
|
|
|
|
|
|
var embeddedChannels = channels
|
2015-08-14 15:14:54 -04:00
|
|
|
|
.Where(i => user.Configuration.DisplayChannelsInline || user.Configuration.DisplayChannelsWithinViews.Contains(i.Id.ToString("N")))
|
2014-06-30 15:24:35 -04:00
|
|
|
|
.ToList();
|
|
|
|
|
|
2015-08-14 14:30:08 -04:00
|
|
|
|
list.AddRange(embeddedChannels);
|
2014-06-30 15:24:35 -04:00
|
|
|
|
|
|
|
|
|
if (channels.Length > embeddedChannels.Count)
|
2014-06-07 15:46:24 -04:00
|
|
|
|
{
|
2015-08-14 14:30:08 -04:00
|
|
|
|
list.Add(await _channelManager.GetInternalChannelFolder(cancellationToken).ConfigureAwait(false));
|
2014-06-07 15:46:24 -04:00
|
|
|
|
}
|
|
|
|
|
|
2014-06-10 13:36:06 -04:00
|
|
|
|
if (_liveTvManager.GetEnabledUsers().Select(i => i.Id.ToString("N")).Contains(query.UserId))
|
2014-06-07 15:46:24 -04:00
|
|
|
|
{
|
2015-08-14 15:14:54 -04:00
|
|
|
|
list.Add(await _liveTvManager.GetInternalLiveTvFolder(CancellationToken.None).ConfigureAwait(false));
|
2014-06-07 15:46:24 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-18 21:42:53 -04:00
|
|
|
|
var sorted = _libraryManager.Sort(list, user, new[] { ItemSortBy.SortName }, SortOrder.Ascending).ToList();
|
|
|
|
|
|
|
|
|
|
var orders = user.Configuration.OrderedViews.ToList();
|
|
|
|
|
|
|
|
|
|
return list
|
|
|
|
|
.OrderBy(i =>
|
|
|
|
|
{
|
|
|
|
|
var index = orders.IndexOf(i.Id.ToString("N"));
|
|
|
|
|
|
|
|
|
|
return index == -1 ? int.MaxValue : index;
|
|
|
|
|
})
|
|
|
|
|
.ThenBy(sorted.IndexOf)
|
|
|
|
|
.ThenBy(i => i.SortName);
|
2014-06-07 15:46:24 -04:00
|
|
|
|
}
|
|
|
|
|
|
2015-08-14 14:00:26 -04:00
|
|
|
|
public Task<UserView> GetUserSubView(string name, string parentId, string type, string sortName, CancellationToken cancellationToken)
|
2014-11-10 22:41:55 -05:00
|
|
|
|
{
|
2015-04-20 14:04:02 -04:00
|
|
|
|
var uniqueId = parentId + "subview" + type;
|
|
|
|
|
|
2015-08-14 14:00:26 -04:00
|
|
|
|
return _libraryManager.GetNamedView(name, parentId, type, sortName, uniqueId, cancellationToken);
|
2014-11-10 22:41:55 -05:00
|
|
|
|
}
|
|
|
|
|
|
2015-08-14 14:00:26 -04:00
|
|
|
|
public Task<UserView> GetUserSubView(string parentId, string type, string sortName, CancellationToken cancellationToken)
|
2014-06-07 15:46:24 -04:00
|
|
|
|
{
|
|
|
|
|
var name = _localizationManager.GetLocalizedString("ViewType" + type);
|
|
|
|
|
|
2015-08-14 14:00:26 -04:00
|
|
|
|
return GetUserSubView(name, parentId, type, sortName, cancellationToken);
|
2014-06-07 15:46:24 -04:00
|
|
|
|
}
|
2014-07-29 23:31:35 -04:00
|
|
|
|
|
2015-11-14 11:58:01 -05:00
|
|
|
|
private async Task<Folder> GetUserView(List<ICollectionFolder> parents, string viewType, string sortName, User user, bool enableUserViews, CancellationToken cancellationToken)
|
2014-07-29 23:31:35 -04:00
|
|
|
|
{
|
2015-09-15 14:09:44 -04:00
|
|
|
|
if (parents.Count == 1 && parents.All(i => string.Equals((enableUserViews ? i.GetViewType(user) : i.CollectionType), viewType, StringComparison.OrdinalIgnoreCase)))
|
2015-04-15 17:59:20 -04:00
|
|
|
|
{
|
2015-11-14 11:58:01 -05:00
|
|
|
|
if (enableUserViews || _config.Configuration.EnableSharedCollectionViewImage)
|
|
|
|
|
{
|
|
|
|
|
return (Folder)parents[0];
|
|
|
|
|
}
|
|
|
|
|
|
2015-04-15 17:59:20 -04:00
|
|
|
|
var parentId = parents[0].Id;
|
|
|
|
|
|
|
|
|
|
var enableRichView = !user.Configuration.PlainFolderViews.Contains(parentId.ToString("N"), StringComparer.OrdinalIgnoreCase);
|
2014-10-29 18:01:02 -04:00
|
|
|
|
|
2015-10-16 00:46:41 -04:00
|
|
|
|
return await GetUserView((Folder)parents[0], viewType, enableRichView, string.Empty, cancellationToken).ConfigureAwait(false);
|
2015-04-15 17:59:20 -04:00
|
|
|
|
}
|
2015-04-20 14:04:02 -04:00
|
|
|
|
|
2015-10-16 00:46:41 -04:00
|
|
|
|
var name = _localizationManager.GetLocalizedString("ViewType" + viewType);
|
2015-04-20 14:04:02 -04:00
|
|
|
|
return await _libraryManager.GetNamedView(user, name, viewType, sortName, cancellationToken).ConfigureAwait(false);
|
2014-07-29 23:31:35 -04:00
|
|
|
|
}
|
2015-01-26 11:47:15 -05:00
|
|
|
|
|
2015-04-15 17:59:20 -04:00
|
|
|
|
public Task<UserView> GetUserView(Guid parentId, string name, string viewType, bool enableRichView, string sortName, User user, CancellationToken cancellationToken)
|
2015-03-15 15:22:04 -04:00
|
|
|
|
{
|
2015-04-17 01:09:12 -04:00
|
|
|
|
viewType = enableRichView ? viewType : null;
|
2015-04-20 14:04:02 -04:00
|
|
|
|
return _libraryManager.GetNamedView(user, name, parentId.ToString("N"), viewType, sortName, null, cancellationToken);
|
2015-03-15 15:22:04 -04:00
|
|
|
|
}
|
|
|
|
|
|
2015-10-16 00:46:41 -04:00
|
|
|
|
public Task<UserView> GetUserView(Folder parent, string viewType, bool enableRichView, string sortName, CancellationToken cancellationToken)
|
2015-09-15 14:09:44 -04:00
|
|
|
|
{
|
|
|
|
|
viewType = enableRichView ? viewType : null;
|
2015-10-16 00:46:41 -04:00
|
|
|
|
|
|
|
|
|
return _libraryManager.GetShadowView(parent, viewType, sortName, null, cancellationToken);
|
2015-09-15 14:09:44 -04:00
|
|
|
|
}
|
|
|
|
|
|
2015-01-26 11:47:15 -05:00
|
|
|
|
public List<Tuple<BaseItem, List<BaseItem>>> GetLatestItems(LatestItemsQuery request)
|
|
|
|
|
{
|
|
|
|
|
var user = _userManager.GetUserById(request.UserId);
|
|
|
|
|
|
|
|
|
|
var includeTypes = request.IncludeItemTypes;
|
|
|
|
|
|
|
|
|
|
var currentUser = user;
|
|
|
|
|
|
2015-11-02 12:25:01 -05:00
|
|
|
|
var libraryItems = GetItemsForLatestItems(user, request.ParentId, includeTypes, request.Limit ?? 10).Where(i =>
|
2015-01-26 11:47:15 -05:00
|
|
|
|
{
|
|
|
|
|
if (request.IsPlayed.HasValue)
|
|
|
|
|
{
|
|
|
|
|
var val = request.IsPlayed.Value;
|
2015-03-31 12:24:16 -04:00
|
|
|
|
if (i is Video && i.IsPlayed(currentUser) != val)
|
2015-01-26 11:47:15 -05:00
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-29 15:01:04 -04:00
|
|
|
|
return true;
|
|
|
|
|
});
|
2015-01-26 11:47:15 -05:00
|
|
|
|
|
|
|
|
|
var list = new List<Tuple<BaseItem, List<BaseItem>>>();
|
|
|
|
|
|
2015-10-29 15:01:04 -04:00
|
|
|
|
foreach (var item in libraryItems)
|
2015-01-26 11:47:15 -05:00
|
|
|
|
{
|
|
|
|
|
// Only grab the index container for media
|
|
|
|
|
var container = item.IsFolder || !request.GroupItems ? null : item.LatestItemsIndexContainer;
|
|
|
|
|
|
|
|
|
|
if (container == null)
|
|
|
|
|
{
|
|
|
|
|
list.Add(new Tuple<BaseItem, List<BaseItem>>(null, new List<BaseItem> { item }));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
var current = list.FirstOrDefault(i => i.Item1 != null && i.Item1.Id == container.Id);
|
|
|
|
|
|
|
|
|
|
if (current != null)
|
|
|
|
|
{
|
|
|
|
|
current.Item2.Add(item);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
list.Add(new Tuple<BaseItem, List<BaseItem>>(container, new List<BaseItem> { item }));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (list.Count >= request.Limit)
|
|
|
|
|
{
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-02 12:25:01 -05:00
|
|
|
|
private IEnumerable<BaseItem> GetItemsForLatestItems(User user, string parentId, string[] includeItemTypes, int limit)
|
2015-01-26 11:47:15 -05:00
|
|
|
|
{
|
2015-10-29 15:01:04 -04:00
|
|
|
|
var parentIds = string.IsNullOrEmpty(parentId)
|
|
|
|
|
? new string[] { }
|
|
|
|
|
: new[] { parentId };
|
2015-01-26 11:47:15 -05:00
|
|
|
|
|
2015-11-02 12:25:01 -05:00
|
|
|
|
if (parentIds.Length == 0)
|
|
|
|
|
{
|
|
|
|
|
parentIds = user.RootFolder.GetChildren(user, true)
|
|
|
|
|
.OfType<Folder>()
|
|
|
|
|
.Select(i => i.Id.ToString("N"))
|
|
|
|
|
.Where(i => !user.Configuration.LatestItemsExcludes.Contains(i))
|
|
|
|
|
.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var excludeItemTypes = includeItemTypes.Length == 0 ? new[] { "ChannelItem", "LiveTvItem", typeof(Person).Name, typeof(Studio).Name, typeof(Year).Name, typeof(GameGenre).Name, typeof(MusicGenre).Name, typeof(Genre).Name } : new string[] { };
|
|
|
|
|
|
2015-10-29 15:01:04 -04:00
|
|
|
|
return _libraryManager.GetItems(new InternalItemsQuery(user)
|
2015-01-26 11:47:15 -05:00
|
|
|
|
{
|
2015-10-29 15:01:04 -04:00
|
|
|
|
IncludeItemTypes = includeItemTypes,
|
|
|
|
|
SortOrder = SortOrder.Descending,
|
|
|
|
|
SortBy = new[] { ItemSortBy.DateCreated },
|
2015-11-02 12:25:01 -05:00
|
|
|
|
IsFolder = includeItemTypes.Length == 0 ? false : (bool?)null,
|
|
|
|
|
ExcludeItemTypes = excludeItemTypes,
|
|
|
|
|
ExcludeLocationTypes = new[] { LocationType.Virtual },
|
|
|
|
|
Limit = limit * 20
|
2015-01-26 11:47:15 -05:00
|
|
|
|
|
2015-11-11 09:56:31 -05:00
|
|
|
|
}, parentIds);
|
2015-01-26 11:47:15 -05:00
|
|
|
|
}
|
2014-06-07 15:46:24 -04:00
|
|
|
|
}
|
|
|
|
|
}
|