mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 10:29:01 -07:00
dlna fix
This commit is contained in:
parent
aa66c1defe
commit
8454aaf053
@ -453,32 +453,16 @@ namespace MediaBrowser.Dlna.ContentDirectory
|
|||||||
sortOrders.Add(ItemSortBy.SortName);
|
sortOrders.Add(ItemSortBy.SortName);
|
||||||
}
|
}
|
||||||
|
|
||||||
QueryResult<BaseItem> queryResult;
|
var queryResult = await folder.GetItems(new InternalItemsQuery
|
||||||
|
|
||||||
if (folder is UserRootFolder)
|
|
||||||
{
|
{
|
||||||
var views = await _userViewManager.GetUserViews(new UserViewQuery { UserId = user.Id.ToString("N"), PresetViews = new[] { CollectionType.Movies, CollectionType.TvShows, CollectionType.Music } }, CancellationToken.None)
|
Limit = limit,
|
||||||
.ConfigureAwait(false);
|
StartIndex = startIndex,
|
||||||
|
SortBy = sortOrders.ToArray(),
|
||||||
|
SortOrder = sort.SortOrder,
|
||||||
|
User = user,
|
||||||
|
Filter = FilterUnsupportedContent
|
||||||
|
|
||||||
queryResult = new QueryResult<BaseItem>
|
}).ConfigureAwait(false);
|
||||||
{
|
|
||||||
Items = views.Cast<BaseItem>().ToArray()
|
|
||||||
};
|
|
||||||
queryResult.TotalRecordCount = queryResult.Items.Length;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
queryResult = await folder.GetItems(new InternalItemsQuery
|
|
||||||
{
|
|
||||||
Limit = limit,
|
|
||||||
StartIndex = startIndex,
|
|
||||||
SortBy = sortOrders.ToArray(),
|
|
||||||
SortOrder = sort.SortOrder,
|
|
||||||
User = user,
|
|
||||||
Filter = FilterUnsupportedContent
|
|
||||||
|
|
||||||
}).ConfigureAwait(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
var options = _config.GetDlnaConfiguration();
|
var options = _config.GetDlnaConfiguration();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user