mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
update queries
This commit is contained in:
parent
602d003e7b
commit
5486e40e1d
@ -251,7 +251,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
if (query.Recursive)
|
if (query.Recursive)
|
||||||
{
|
{
|
||||||
query.Recursive = true;
|
query.Recursive = true;
|
||||||
query.ParentId = parent.Id;
|
|
||||||
query.SetUser(user);
|
query.SetUser(user);
|
||||||
|
|
||||||
if (query.IncludeItemTypes.Length == 0)
|
if (query.IncludeItemTypes.Length == 0)
|
||||||
@ -259,7 +258,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
query.IncludeItemTypes = new[] { typeof(MusicArtist).Name, typeof(MusicAlbum).Name, typeof(Audio.Audio).Name, typeof(MusicVideo).Name };
|
query.IncludeItemTypes = new[] { typeof(MusicArtist).Name, typeof(MusicAlbum).Name, typeof(Audio.Audio).Name, typeof(MusicVideo).Name };
|
||||||
}
|
}
|
||||||
|
|
||||||
return _libraryManager.GetItemsResult(query);
|
return parent.QueryRecursive(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
var list = new List<BaseItem>();
|
var list = new List<BaseItem>();
|
||||||
@ -448,7 +447,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
if (query.Recursive)
|
if (query.Recursive)
|
||||||
{
|
{
|
||||||
query.Recursive = true;
|
query.Recursive = true;
|
||||||
query.ParentId = parent.Id;
|
|
||||||
query.SetUser(user);
|
query.SetUser(user);
|
||||||
|
|
||||||
if (query.IncludeItemTypes.Length == 0)
|
if (query.IncludeItemTypes.Length == 0)
|
||||||
@ -456,7 +454,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
query.IncludeItemTypes = new[] { typeof(Movie).Name, typeof(BoxSet).Name };
|
query.IncludeItemTypes = new[] { typeof(Movie).Name, typeof(BoxSet).Name };
|
||||||
}
|
}
|
||||||
|
|
||||||
return _libraryManager.GetItemsResult(query);
|
return parent.QueryRecursive(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
var list = new List<BaseItem>();
|
var list = new List<BaseItem>();
|
||||||
@ -613,7 +611,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
if (query.Recursive)
|
if (query.Recursive)
|
||||||
{
|
{
|
||||||
query.Recursive = true;
|
query.Recursive = true;
|
||||||
query.ParentId = parent.Id;
|
|
||||||
query.SetUser(user);
|
query.SetUser(user);
|
||||||
|
|
||||||
if (query.IncludeItemTypes.Length == 0)
|
if (query.IncludeItemTypes.Length == 0)
|
||||||
@ -621,7 +618,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
query.IncludeItemTypes = new[] { typeof(Series).Name, typeof(Season).Name, typeof(Episode).Name };
|
query.IncludeItemTypes = new[] { typeof(Series).Name, typeof(Season).Name, typeof(Episode).Name };
|
||||||
}
|
}
|
||||||
|
|
||||||
return _libraryManager.GetItemsResult(query);
|
return parent.QueryRecursive(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
var list = new List<BaseItem>();
|
var list = new List<BaseItem>();
|
||||||
|
Loading…
Reference in New Issue
Block a user