mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
Enable nullable for more files
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#nullable disable
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
@@ -35,21 +34,21 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// Gets or sets the cache path.
|
||||
/// </summary>
|
||||
/// <value>The cache path.</value>
|
||||
public string CachePath { get; set; }
|
||||
public string? CachePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the last known version that was ran using the configuration.
|
||||
/// </summary>
|
||||
/// <value>The version from previous run.</value>
|
||||
[XmlIgnore]
|
||||
public Version PreviousVersion { get; set; }
|
||||
public Version? PreviousVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the stringified PreviousVersion to be stored/loaded,
|
||||
/// because System.Version itself isn't xml-serializable.
|
||||
/// </summary>
|
||||
/// <value>String value of PreviousVersion.</value>
|
||||
public string PreviousVersionStr
|
||||
public string? PreviousVersionStr
|
||||
{
|
||||
get => PreviousVersion?.ToString();
|
||||
set
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
@@ -52,21 +51,21 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// Gets or sets the preferred metadata language.
|
||||
/// </summary>
|
||||
/// <value>The preferred metadata language.</value>
|
||||
public string PreferredMetadataLanguage { get; set; }
|
||||
public string? PreferredMetadataLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the metadata country code.
|
||||
/// </summary>
|
||||
/// <value>The metadata country code.</value>
|
||||
public string MetadataCountryCode { get; set; }
|
||||
public string? MetadataCountryCode { get; set; }
|
||||
|
||||
public string SeasonZeroDisplayName { get; set; }
|
||||
|
||||
public string[] MetadataSavers { get; set; }
|
||||
public string[]? MetadataSavers { get; set; }
|
||||
|
||||
public string[] DisabledLocalMetadataReaders { get; set; }
|
||||
|
||||
public string[] LocalMetadataReaderOrder { get; set; }
|
||||
public string[]? LocalMetadataReaderOrder { get; set; }
|
||||
|
||||
public string[] DisabledSubtitleFetchers { get; set; }
|
||||
|
||||
@@ -76,7 +75,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public bool SkipSubtitlesIfAudioTrackMatches { get; set; }
|
||||
|
||||
public string[] SubtitleDownloadLanguages { get; set; }
|
||||
public string[]? SubtitleDownloadLanguages { get; set; }
|
||||
|
||||
public bool RequirePerfectSubtitleMatch { get; set; }
|
||||
|
||||
@@ -84,7 +83,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public TypeOptions[] TypeOptions { get; set; }
|
||||
|
||||
public TypeOptions GetTypeOptions(string type)
|
||||
public TypeOptions? GetTypeOptions(string type)
|
||||
{
|
||||
foreach (var options in TypeOptions)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
@@ -33,7 +32,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// Gets or sets the audio language preference.
|
||||
/// </summary>
|
||||
/// <value>The audio language preference.</value>
|
||||
public string AudioLanguagePreference { get; set; }
|
||||
public string? AudioLanguagePreference { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [play default audio track].
|
||||
@@ -45,7 +44,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// Gets or sets the subtitle language preference.
|
||||
/// </summary>
|
||||
/// <value>The subtitle language preference.</value>
|
||||
public string SubtitleLanguagePreference { get; set; }
|
||||
public string? SubtitleLanguagePreference { get; set; }
|
||||
|
||||
public bool DisplayMissingEpisodes { get; set; }
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
@@ -13,7 +12,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
EnablePathSubstitution = true;
|
||||
}
|
||||
|
||||
public string UserId { get; set; }
|
||||
public string? UserId { get; set; }
|
||||
|
||||
public string ReleaseDateFormat { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user