mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-30 04:18:27 +01:00
add cinema mode feature
This commit is contained in:
23
MediaBrowser.Model/Configuration/CinemaModeConfiguration.cs
Normal file
23
MediaBrowser.Model/Configuration/CinemaModeConfiguration.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
public class CinemaModeConfiguration
|
||||
{
|
||||
public bool EnableIntrosForMovies { get; set; }
|
||||
public bool EnableIntrosForEpisodes { get; set; }
|
||||
public bool EnableIntrosForWatchedContent { get; set; }
|
||||
public bool EnableIntrosFromUpcomingTrailers { get; set; }
|
||||
public bool EnableIntrosFromMoviesInLibrary { get; set; }
|
||||
public bool EnableCustomIntro { get; set; }
|
||||
public bool EnableIntrosParentalControl { get; set; }
|
||||
|
||||
public CinemaModeConfiguration()
|
||||
{
|
||||
EnableIntrosForMovies = true;
|
||||
EnableCustomIntro = true;
|
||||
EnableIntrosFromMoviesInLibrary = true;
|
||||
EnableIntrosFromUpcomingTrailers = true;
|
||||
EnableIntrosParentalControl = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -179,6 +179,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public bool SaveMetadataHidden { get; set; }
|
||||
|
||||
public bool FindInternetTrailers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
|
||||
/// </summary>
|
||||
@@ -204,7 +206,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
RealtimeMonitorDelay = 30;
|
||||
|
||||
EnableInternetProviders = true;
|
||||
EnableInternetProviders = true;
|
||||
FindInternetTrailers = true;
|
||||
|
||||
PathSubstitutions = new PathSubstitution[] { };
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
public bool SyncConnectName { get; set; }
|
||||
public bool SyncConnectImage { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
|
||||
/// </summary>
|
||||
|
||||
16
MediaBrowser.Model/Entities/ExtraType.cs
Normal file
16
MediaBrowser.Model/Entities/ExtraType.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
public enum ExtraType
|
||||
{
|
||||
Clip = 1,
|
||||
Trailer = 2,
|
||||
BehindTheScenes = 3,
|
||||
DeletedScene = 4,
|
||||
Interview = 5,
|
||||
Scene = 6,
|
||||
Sample = 7,
|
||||
ThemeSong = 8,
|
||||
ThemeVideo = 9
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,5 @@ namespace MediaBrowser.Model.Entities
|
||||
public string Url { get; set; }
|
||||
public string Name { get; set; }
|
||||
public VideoSize? VideoSize { get; set; }
|
||||
public bool IsDirectLink { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,11 +79,13 @@
|
||||
<Compile Include="Collections\CollectionCreationResult.cs" />
|
||||
<Compile Include="Configuration\ChannelOptions.cs" />
|
||||
<Compile Include="Configuration\ChapterOptions.cs" />
|
||||
<Compile Include="Configuration\CinemaModeConfiguration.cs" />
|
||||
<Compile Include="Configuration\XbmcMetadataOptions.cs" />
|
||||
<Compile Include="Configuration\SubtitlePlaybackMode.cs" />
|
||||
<Compile Include="Connect\UserLinkType.cs" />
|
||||
<Compile Include="Drawing\ImageOrientation.cs" />
|
||||
<Compile Include="Dto\StreamOptions.cs" />
|
||||
<Compile Include="Entities\ExtraType.cs" />
|
||||
<Compile Include="FileOrganization\AutoOrganizeOptions.cs" />
|
||||
<Compile Include="FileOrganization\TvFileOrganizationOptions.cs" />
|
||||
<Compile Include="Configuration\BaseApplicationConfiguration.cs" />
|
||||
|
||||
Reference in New Issue
Block a user