mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Added specialized episodes endpoint, updated nuget.
This commit is contained in:
parent
5cdd9d0fb1
commit
7d9ac4b9cb
3 changed files with 24 additions and 9 deletions
|
@ -505,16 +505,18 @@
|
|||
Fields: "ItemCounts,DateCreated,AudioInfo"
|
||||
};
|
||||
|
||||
if (item.Type == "Season" && item.IndexNumber) {
|
||||
var promise;
|
||||
|
||||
query.ParentId = item.SeriesId;
|
||||
query.Recursive = true;
|
||||
query.IncludeItemTypes = "Episode";
|
||||
query.AiredDuringSeason = item.IndexNumber;
|
||||
query.SortBy = "AiredEpisodeOrder";
|
||||
if (item.Type == "Season" && item.IndexNumber != null) {
|
||||
|
||||
promise = ApiClient.getEpisodes(item.SeriesId, {
|
||||
|
||||
season: item.IndexNumber,
|
||||
userId: Dashboard.getCurrentUserId()
|
||||
});
|
||||
}
|
||||
|
||||
if (item.Type == "Series" || item.Type == "Season") {
|
||||
if (item.Type == "Series") {
|
||||
if (!user.Configuration.DisplayMissingEpisodes) {
|
||||
query.IsMissing = false;
|
||||
}
|
||||
|
@ -523,7 +525,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
|
||||
promise = promise || ApiClient.getItems(Dashboard.getCurrentUserId(), query);
|
||||
|
||||
promise.done(function (result) {
|
||||
|
||||
if (item.Type == "MusicAlbum") {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue