diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-06-09 15:16:14 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-06-09 15:16:14 -0400 |
| commit | 945e84327087c9e81371c7b4f940a19a0c083586 (patch) | |
| tree | 0c4f4c2d4c048c3baf4acfe45a7caf8ff9fe931b /MediaBrowser.Model/Configuration/ServerConfiguration.cs | |
| parent | ba336372512e6366517a67e8b12677333266d032 (diff) | |
add new chapter provider feature
Diffstat (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs')
| -rw-r--r-- | MediaBrowser.Model/Configuration/ServerConfiguration.cs | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 34707ecd7..bbe862238 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -193,10 +193,6 @@ namespace MediaBrowser.Model.Configuration public bool AllowVideoUpscaling { get; set; } - public bool EnableMovieChapterImageExtraction { get; set; } - public bool EnableEpisodeChapterImageExtraction { get; set; } - public bool EnableOtherVideoChapterImageExtraction { get; set; } - public MetadataOptions[] MetadataOptions { get; set; } public bool EnableDebugEncodingLogging { get; set; } @@ -227,6 +223,7 @@ namespace MediaBrowser.Model.Configuration public string[] ManualLoginClients { get; set; } public ChannelOptions ChannelOptions { get; set; } + public ChapterOptions ChapterOptions { get; set; } /// <summary> /// Initializes a new instance of the <see cref="ServerConfiguration" /> class. @@ -241,9 +238,6 @@ namespace MediaBrowser.Model.Configuration EnableHttpLevelLogging = true; EnableDashboardResponseCaching = true; - EnableMovieChapterImageExtraction = true; - EnableEpisodeChapterImageExtraction = false; - EnableOtherVideoChapterImageExtraction = false; EnableAutomaticRestart = true; EnablePeoplePrefixSubFolders = true; @@ -297,6 +291,7 @@ namespace MediaBrowser.Model.Configuration SubtitleOptions = new SubtitleOptions(); ChannelOptions = new ChannelOptions(); + ChapterOptions = new ChapterOptions(); } } @@ -315,4 +310,29 @@ namespace MediaBrowser.Model.Configuration MaxDownloadAge = 30; } } + + public class ChapterOptions + { + public bool EnableMovieChapterImageExtraction { get; set; } + public bool EnableEpisodeChapterImageExtraction { get; set; } + public bool EnableOtherVideoChapterImageExtraction { get; set; } + + public bool DownloadMovieChapters { get; set; } + public bool DownloadEpisodeChapters { get; set; } + + public string[] FetcherOrder { get; set; } + public string[] DisabledFetchers { get; set; } + + public ChapterOptions() + { + EnableMovieChapterImageExtraction = true; + EnableEpisodeChapterImageExtraction = false; + EnableOtherVideoChapterImageExtraction = false; + + DownloadMovieChapters = true; + + DisabledFetchers = new string[] { }; + FetcherOrder = new string[] { }; + } + } } |
