mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 04:34:18 +01:00
update task triggers
This commit is contained in:
@@ -1115,6 +1115,18 @@ namespace MediaBrowser.Controller.Entities
|
||||
return value.Value <= maxAllowedRating.Value;
|
||||
}
|
||||
|
||||
public int? GetParentalRatingValue()
|
||||
{
|
||||
var rating = CustomRatingForComparison;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(rating))
|
||||
{
|
||||
rating = OfficialRatingForComparison;
|
||||
}
|
||||
|
||||
return LocalizationManager.GetRatingLevel(rating);
|
||||
}
|
||||
|
||||
private bool IsVisibleViaTags(User user)
|
||||
{
|
||||
var hasTags = this as IHasTags;
|
||||
|
||||
@@ -94,6 +94,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
public string[] ChannelIds { get; set; }
|
||||
|
||||
internal List<Guid> ItemIdsFromPersonFilters { get; set; }
|
||||
public int? MaxParentalRating { get; set; }
|
||||
|
||||
public InternalItemsQuery()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user