mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 06:48:35 +01:00
fixes #552 - Add parental control usage limits
This commit is contained in:
23
MediaBrowser.Model/Configuration/AccessSchedule.cs
Normal file
23
MediaBrowser.Model/Configuration/AccessSchedule.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
public class AccessSchedule
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the day of week.
|
||||
/// </summary>
|
||||
/// <value>The day of week.</value>
|
||||
public DayOfWeek DayOfWeek { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the start hour.
|
||||
/// </summary>
|
||||
/// <value>The start hour.</value>
|
||||
public double StartHour { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or sets the end hour.
|
||||
/// </summary>
|
||||
/// <value>The end hour.</value>
|
||||
public double EndHour { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -66,7 +66,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
public string[] BlockedChannels { get; set; }
|
||||
|
||||
public string[] DisplayChannelsWithinViews { get; set; }
|
||||
|
||||
|
||||
public string[] ExcludeFoldersFromGrouping { get; set; }
|
||||
|
||||
public UnratedItem[] BlockUnratedItems { get; set; }
|
||||
@@ -86,13 +86,14 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public bool EnableCinemaMode { get; set; }
|
||||
|
||||
public AccessSchedule[] AccessSchedules { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
|
||||
/// </summary>
|
||||
public UserConfiguration()
|
||||
{
|
||||
PlayDefaultAudioTrack = true;
|
||||
EnableRemoteControlOfOtherUsers = true;
|
||||
EnableLiveTvManagement = true;
|
||||
EnableMediaPlayback = true;
|
||||
EnableLiveTvAccess = true;
|
||||
@@ -111,6 +112,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
SyncConnectImage = true;
|
||||
IncludeTrailersInSuggestions = true;
|
||||
EnableCinemaMode = true;
|
||||
|
||||
AccessSchedules = new AccessSchedule[] { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user