mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Enable TreatWarningsAsErrors for MediaBrowser.Model
This commit is contained in:
@@ -6,11 +6,11 @@ namespace MediaBrowser.Model.Providers
|
||||
public class ExternalIdInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the external id information for serialization to the client.
|
||||
/// Initializes a new instance of the <see cref="ExternalIdInfo"/> class.
|
||||
/// </summary>
|
||||
/// <param name="name">Name of the external id provider (IE: IMDB, MusicBrainz, etc).</param>
|
||||
/// <param name="key">Key for this id. This key should be unique across all providers.</param>
|
||||
/// <param name="type">Specific media type for this id</param>
|
||||
/// <param name="type">Specific media type for this id.</param>
|
||||
/// <param name="urlFormatString">URL format string.</param>
|
||||
public ExternalIdInfo(string name, string key, ExternalIdMediaType? type, string urlFormatString)
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace MediaBrowser.Model.Providers
|
||||
public string Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a url used for previewing a smaller version.
|
||||
/// Gets or sets a url used for previewing a smaller version.
|
||||
/// </summary>
|
||||
public string ThumbnailUrl { get; set; }
|
||||
|
||||
|
||||
@@ -7,6 +7,14 @@ namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
public class SubtitleOptions
|
||||
{
|
||||
public SubtitleOptions()
|
||||
{
|
||||
DownloadLanguages = Array.Empty<string>();
|
||||
|
||||
SkipIfAudioTrackMatches = true;
|
||||
RequirePerfectMatch = true;
|
||||
}
|
||||
|
||||
public bool SkipIfEmbeddedSubtitlesPresent { get; set; }
|
||||
|
||||
public bool SkipIfAudioTrackMatches { get; set; }
|
||||
@@ -24,13 +32,5 @@ namespace MediaBrowser.Model.Providers
|
||||
public bool IsOpenSubtitleVipAccount { get; set; }
|
||||
|
||||
public bool RequirePerfectMatch { get; set; }
|
||||
|
||||
public SubtitleOptions()
|
||||
{
|
||||
DownloadLanguages = Array.Empty<string>();
|
||||
|
||||
SkipIfAudioTrackMatches = true;
|
||||
RequirePerfectMatch = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user