mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-01 20:54:30 -04:00
event fire fix
This commit is contained in:
parent
8051ea9b1b
commit
fa1254e715
@ -157,6 +157,9 @@ namespace MediaBrowser.Api
|
|||||||
[ApiMember(Name = "AdjacentTo", Description = "Optional. Return items that are siblings of a supplied item.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
[ApiMember(Name = "AdjacentTo", Description = "Optional. Return items that are siblings of a supplied item.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
||||||
public string AdjacentTo { get; set; }
|
public string AdjacentTo { get; set; }
|
||||||
|
|
||||||
|
[ApiMember(Name = "StartItemId", Description = "Optional. Skip through the list until a given item is found.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
||||||
|
public string StartItemId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Skips over a given number of items within the results. Use for paging.
|
/// Skips over a given number of items within the results. Use for paging.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -475,6 +478,11 @@ namespace MediaBrowser.Api
|
|||||||
episodes = episodes.Where(i => i.IsVirtualUnaired == val);
|
episodes = episodes.Where(i => i.IsVirtualUnaired == val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(request.StartItemId))
|
||||||
|
{
|
||||||
|
episodes = episodes.SkipWhile(i => !string.Equals(i.Id.ToString("N"), request.StartItemId, StringComparison.OrdinalIgnoreCase));
|
||||||
|
}
|
||||||
|
|
||||||
IEnumerable<BaseItem> returnItems = episodes;
|
IEnumerable<BaseItem> returnItems = episodes;
|
||||||
|
|
||||||
// This must be the last filter
|
// This must be the last filter
|
||||||
|
@ -83,5 +83,6 @@ namespace MediaBrowser.Model.Querying
|
|||||||
public const string Players = "Players";
|
public const string Players = "Players";
|
||||||
public const string GameSystem = "GameSystem";
|
public const string GameSystem = "GameSystem";
|
||||||
public const string IsFavoriteOrLiked = "IsFavoriteOrLiked";
|
public const string IsFavoriteOrLiked = "IsFavoriteOrLiked";
|
||||||
|
public const string DateLastContentAdded = "DateLastContentAdded";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user