aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model')
-rw-r--r--MediaBrowser.Model/Configuration/EmbeddedSubtitleOptions.cs30
-rw-r--r--MediaBrowser.Model/Configuration/LibraryOptions.cs5
2 files changed, 32 insertions, 3 deletions
diff --git a/MediaBrowser.Model/Configuration/EmbeddedSubtitleOptions.cs b/MediaBrowser.Model/Configuration/EmbeddedSubtitleOptions.cs
new file mode 100644
index 000000000..948027603
--- /dev/null
+++ b/MediaBrowser.Model/Configuration/EmbeddedSubtitleOptions.cs
@@ -0,0 +1,30 @@
+namespace MediaBrowser.Model.Configuration
+{
+ /// <summary>
+ /// An enum representing the options to disable embedded subs.
+ /// </summary>
+ public enum EmbeddedSubtitleOptions
+ {
+
+ /// <summary>
+ /// Allow all embedded subs.
+ /// </summary>
+ AllowAll,
+
+ /// <summary>
+ /// Allow only embedded subs that are text based.
+ /// </summary>
+ AllowText,
+
+ /// <summary>
+ /// Allow only embedded subs that are image based.
+ /// </summary>
+ AllowImage,
+
+ /// <summary>
+ /// Disable all embedded subs.
+ /// </summary>
+ AllowNone,
+ }
+
+}
diff --git a/MediaBrowser.Model/Configuration/LibraryOptions.cs b/MediaBrowser.Model/Configuration/LibraryOptions.cs
index efa63b5e1..ad3bce86e 100644
--- a/MediaBrowser.Model/Configuration/LibraryOptions.cs
+++ b/MediaBrowser.Model/Configuration/LibraryOptions.cs
@@ -15,6 +15,7 @@ namespace MediaBrowser.Model.Configuration
SkipSubtitlesIfAudioTrackMatches = true;
RequirePerfectSubtitleMatch = true;
+ AllowEmbeddedSubtitles = EmbeddedSubtitleOptions.AllowAll;
AutomaticallyAddToCollection = true;
EnablePhotos = true;
@@ -84,9 +85,7 @@ namespace MediaBrowser.Model.Configuration
public bool AutomaticallyAddToCollection { get; set; }
- public bool DisableEmbeddedTextSubtitles { get; set; }
-
- public bool DisableEmbeddedImageSubtitles { get; set; }
+ public EmbeddedSubtitleOptions AllowEmbeddedSubtitles { get; set; }
public TypeOptions[] TypeOptions { get; set; }