From 945e84327087c9e81371c7b4f940a19a0c083586 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 9 Jun 2014 15:16:14 -0400 Subject: add new chapter provider feature --- .../Configuration/ServerConfiguration.cs | 34 +++++++++++++++++----- 1 file changed, 27 insertions(+), 7 deletions(-) (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs') 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; } /// /// Initializes a new instance of the 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[] { }; + } + } } -- cgit v1.2.3