mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 13:28:27 +01:00
Merge pull request #7054 from matthew-jones-uk/disable-embedded-subs
This commit is contained in:
30
MediaBrowser.Model/Configuration/EmbeddedSubtitleOptions.cs
Normal file
30
MediaBrowser.Model/Configuration/EmbeddedSubtitleOptions.cs
Normal file
@@ -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 = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Allow only embedded subs that are text based.
|
||||
/// </summary>
|
||||
AllowText = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Allow only embedded subs that are image based.
|
||||
/// </summary>
|
||||
AllowImage = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Disable all embedded subs.
|
||||
/// </summary>
|
||||
AllowNone = 3,
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,6 +15,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
SkipSubtitlesIfAudioTrackMatches = true;
|
||||
RequirePerfectSubtitleMatch = true;
|
||||
AllowEmbeddedSubtitles = EmbeddedSubtitleOptions.AllowAll;
|
||||
|
||||
AutomaticallyAddToCollection = true;
|
||||
EnablePhotos = true;
|
||||
@@ -84,6 +85,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public bool AutomaticallyAddToCollection { get; set; }
|
||||
|
||||
public EmbeddedSubtitleOptions AllowEmbeddedSubtitles { get; set; }
|
||||
|
||||
public TypeOptions[] TypeOptions { get; set; }
|
||||
|
||||
public TypeOptions? GetTypeOptions(string type)
|
||||
|
||||
Reference in New Issue
Block a user