mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-05 21:33:02 +02:00
add MinParentIndexNumber
This commit is contained in:
parent
373c63bcc7
commit
7a0e7b3cf8
|
@ -3541,6 +3541,12 @@ namespace Emby.Server.Implementations.Data
|
||||||
statement?.TryBind("@MinIndexNumber", query.MinIndexNumber.Value);
|
statement?.TryBind("@MinIndexNumber", query.MinIndexNumber.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (query.MinParentIndexNumber.HasValue)
|
||||||
|
{
|
||||||
|
whereClauses.Add("ParentIndexNumber>=@MinParentIndexNumber");
|
||||||
|
statement?.TryBind("@MinParentIndexNumber", query.MinParentIndexNumber.Value);
|
||||||
|
}
|
||||||
|
|
||||||
if (query.MinDateCreated.HasValue)
|
if (query.MinDateCreated.HasValue)
|
||||||
{
|
{
|
||||||
whereClauses.Add("DateCreated>=@MinDateCreated");
|
whereClauses.Add("DateCreated>=@MinDateCreated");
|
||||||
|
|
|
@ -224,7 +224,8 @@ namespace Emby.Server.Implementations.TV
|
||||||
IsVirtualItem = false,
|
IsVirtualItem = false,
|
||||||
ParentIndexNumberNotEquals = 0,
|
ParentIndexNumberNotEquals = 0,
|
||||||
DtoOptions = dtoOptions,
|
DtoOptions = dtoOptions,
|
||||||
MinIndexNumber = lastWatchedEpisode?.IndexNumberEnd ?? lastWatchedEpisode?.IndexNumber
|
MinIndexNumber = lastWatchedEpisode?.IndexNumberEnd ?? lastWatchedEpisode?.IndexNumber,
|
||||||
|
MinParentIndexNumber = lastWatchedEpisode?.ParentIndexNumber
|
||||||
};
|
};
|
||||||
|
|
||||||
Episode nextEpisode;
|
Episode nextEpisode;
|
||||||
|
|
|
@ -205,6 +205,8 @@ namespace MediaBrowser.Controller.Entities
|
||||||
|
|
||||||
public int? MinIndexNumber { get; set; }
|
public int? MinIndexNumber { get; set; }
|
||||||
|
|
||||||
|
public int? MinParentIndexNumber { get; set; }
|
||||||
|
|
||||||
public int? AiredDuringSeason { get; set; }
|
public int? AiredDuringSeason { get; set; }
|
||||||
|
|
||||||
public double? MinCriticRating { get; set; }
|
public double? MinCriticRating { get; set; }
|
||||||
|
|
Loading…
Reference in a new issue