mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update nextup query
This commit is contained in:
parent
1dfe694a77
commit
a53b062b22
@ -32,9 +32,7 @@ namespace MediaBrowser.Server.Implementations.TV
|
|||||||
throw new ArgumentException("User not found");
|
throw new ArgumentException("User not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
var parentIds = string.IsNullOrEmpty(request.ParentId)
|
var parentIdGuid = string.IsNullOrWhiteSpace(request.ParentId) ? (Guid?)null : new Guid(request.ParentId);
|
||||||
? new string[] { }
|
|
||||||
: new[] { request.ParentId };
|
|
||||||
|
|
||||||
string presentationUniqueKey = null;
|
string presentationUniqueKey = null;
|
||||||
int? limit = null;
|
int? limit = null;
|
||||||
@ -54,9 +52,10 @@ namespace MediaBrowser.Server.Implementations.TV
|
|||||||
IncludeItemTypes = new[] { typeof(Series).Name },
|
IncludeItemTypes = new[] { typeof(Series).Name },
|
||||||
SortOrder = SortOrder.Ascending,
|
SortOrder = SortOrder.Ascending,
|
||||||
PresentationUniqueKey = presentationUniqueKey,
|
PresentationUniqueKey = presentationUniqueKey,
|
||||||
Limit = limit
|
Limit = limit,
|
||||||
|
ParentId = parentIdGuid
|
||||||
|
|
||||||
}, parentIds).Cast<Series>();
|
}).Cast<Series>();
|
||||||
|
|
||||||
// Avoid implicitly captured closure
|
// Avoid implicitly captured closure
|
||||||
var episodes = GetNextUpEpisodes(request, user, items);
|
var episodes = GetNextUpEpisodes(request, user, items);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user