The Free Software Media System - Server Backend & API
Enable TreatWarningsAsErrors for MediaBrowser.Controller in Release
Bond_009404bb4f83521
diff --git a/MediaBrowser.Controller/Authentication/AuthenticationResult.cs b/MediaBrowser.Controller/Authentication/AuthenticationResult.csindex 4249a9a667..bdebd76ab3 100644--- a/MediaBrowser.Controller/Authentication/AuthenticationResult.cs+++ b/MediaBrowser.Controller/Authentication/AuthenticationResult.cs@@ -1,5 +1,6 @@#pragma warning disable CS1591+using MediaBrowser.Controller.Session;using MediaBrowser.Model.Dto;diff --git a/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs b/MediaBrowser.Controller/Authentication/IAuthenticationProvider.csindex 15c9027774..ecdffa2ebe 100644--- a/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs+++ b/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Threading.Tasks;using Jellyfin.Data.Entities;using MediaBrowser.Model.Users;@@ -11,7 +13,9 @@ namespace MediaBrowser.Controller.Authenticationbool IsEnabled { get; }Task<ProviderAuthenticationResult> Authenticate(string username, string password);+bool HasPassword(User user);+Task ChangePassword(User user, string newPassword);}diff --git a/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs b/MediaBrowser.Controller/Authentication/IPasswordResetProvider.csindex 693df80ac2..6729b91157 100644--- a/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs+++ b/MediaBrowser.Controller/Authentication/IPasswordResetProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Threading.Tasks;using Jellyfin.Data.Entities;@@ -12,6 +14,7 @@ namespace MediaBrowser.Controller.Authenticationbool IsEnabled { get; }Task<ForgotPasswordResult> StartForgotPasswordProcess(User user, bool isInNetwork);+Task<PinRedeemResult> RedeemPasswordResetPin(string pin);}diff --git a/MediaBrowser.Controller/Channels/Channel.cs b/MediaBrowser.Controller/Channels/Channel.csindex dbb047804a..129cdb519f 100644--- a/MediaBrowser.Controller/Channels/Channel.cs+++ b/MediaBrowser.Controller/Channels/Channel.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Globalization;using System.Linq;diff --git a/MediaBrowser.Controller/Channels/ChannelItemInfo.cs b/MediaBrowser.Controller/Channels/ChannelItemInfo.csindex 00d4d9cb3e..476992cbd4 100644--- a/MediaBrowser.Controller/Channels/ChannelItemInfo.cs+++ b/MediaBrowser.Controller/Channels/ChannelItemInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/Channels/ChannelItemResult.cs b/MediaBrowser.Controller/Channels/ChannelItemResult.csindex c194c8e487..cee7b20039 100644--- a/MediaBrowser.Controller/Channels/ChannelItemResult.cs+++ b/MediaBrowser.Controller/Channels/ChannelItemResult.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;namespace MediaBrowser.Controller.Channelsdiff --git a/MediaBrowser.Controller/Channels/ChannelItemType.cs b/MediaBrowser.Controller/Channels/ChannelItemType.csindex 833ae75fe5..3ce920e236 100644--- a/MediaBrowser.Controller/Channels/ChannelItemType.cs+++ b/MediaBrowser.Controller/Channels/ChannelItemType.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Channels{public enum ChannelItemTypediff --git a/MediaBrowser.Controller/Channels/ChannelParentalRating.cs b/MediaBrowser.Controller/Channels/ChannelParentalRating.csindex 1d189446dc..f77d81c166 100644--- a/MediaBrowser.Controller/Channels/ChannelParentalRating.cs+++ b/MediaBrowser.Controller/Channels/ChannelParentalRating.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Channels{public enum ChannelParentalRatingdiff --git a/MediaBrowser.Controller/Channels/ChannelSearchInfo.cs b/MediaBrowser.Controller/Channels/ChannelSearchInfo.csindex c02055b901..32469d4d7b 100644--- a/MediaBrowser.Controller/Channels/ChannelSearchInfo.cs+++ b/MediaBrowser.Controller/Channels/ChannelSearchInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Channels{public class ChannelSearchInfodiff --git a/MediaBrowser.Controller/Channels/IChannel.cs b/MediaBrowser.Controller/Channels/IChannel.csindex c44e20d1ab..2c0eadf950 100644--- a/MediaBrowser.Controller/Channels/IChannel.cs+++ b/MediaBrowser.Controller/Channels/IChannel.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Channels/IChannelManager.cs b/MediaBrowser.Controller/Channels/IChannelManager.csindex df508fbe25..9a9d22d33d 100644--- a/MediaBrowser.Controller/Channels/IChannelManager.cs+++ b/MediaBrowser.Controller/Channels/IChannelManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;@@ -31,6 +33,7 @@ namespace MediaBrowser.Controller.ChannelsChannelFeatures[] GetAllChannelFeatures();bool EnableMediaSourceDisplay(BaseItem item);+bool CanDelete(BaseItem item);Task DeleteItem(BaseItem item);diff --git a/MediaBrowser.Controller/Channels/IHasCacheKey.cs b/MediaBrowser.Controller/Channels/IHasCacheKey.csindex d86ad0dba3..bf895a0eca 100644--- a/MediaBrowser.Controller/Channels/IHasCacheKey.cs+++ b/MediaBrowser.Controller/Channels/IHasCacheKey.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Channels{public interface IHasCacheKeydiff --git a/MediaBrowser.Controller/Channels/IRequiresMediaInfoCallback.cs b/MediaBrowser.Controller/Channels/IRequiresMediaInfoCallback.csindex deee46ff73..589295543c 100644--- a/MediaBrowser.Controller/Channels/IRequiresMediaInfoCallback.cs+++ b/MediaBrowser.Controller/Channels/IRequiresMediaInfoCallback.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Channels/ISearchableChannel.cs b/MediaBrowser.Controller/Channels/ISearchableChannel.csindex 48043ad7a7..b627ca1c25 100644--- a/MediaBrowser.Controller/Channels/ISearchableChannel.cs+++ b/MediaBrowser.Controller/Channels/ISearchableChannel.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;@@ -30,6 +32,7 @@ namespace MediaBrowser.Controller.Channelspublic interface ISupportsDelete{bool CanDelete(BaseItem item);+Task DeleteItem(string id, CancellationToken cancellationToken);}diff --git a/MediaBrowser.Controller/Channels/InternalChannelFeatures.cs b/MediaBrowser.Controller/Channels/InternalChannelFeatures.csindex 1f4a26064c..1074ce435e 100644--- a/MediaBrowser.Controller/Channels/InternalChannelFeatures.cs+++ b/MediaBrowser.Controller/Channels/InternalChannelFeatures.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Model.Channels;@@ -5,6 +7,14 @@ namespace MediaBrowser.Controller.Channels{public class InternalChannelFeatures{+ public InternalChannelFeatures()+ {+ MediaTypes = new List<ChannelMediaType>();+ ContentTypes = new List<ChannelMediaContentType>();++ DefaultSortFields = new List<ChannelItemSortField>();+ }+/// <summary>/// Gets or sets the media types./// </summary>@@ -48,13 +58,5 @@ namespace MediaBrowser.Controller.Channels/// </summary>/// <value><c>true</c> if [supports downloading]; otherwise, <c>false</c>.</value>public bool SupportsContentDownloading { get; set; }-- public InternalChannelFeatures()- {- MediaTypes = new List<ChannelMediaType>();- ContentTypes = new List<ChannelMediaContentType>();-- DefaultSortFields = new List<ChannelItemSortField>();- }}}diff --git a/MediaBrowser.Controller/Channels/InternalChannelItemQuery.cs b/MediaBrowser.Controller/Channels/InternalChannelItemQuery.csindex 6d5ca75af8..7e9bb28ed6 100644--- a/MediaBrowser.Controller/Channels/InternalChannelItemQuery.cs+++ b/MediaBrowser.Controller/Channels/InternalChannelItemQuery.cs@@ -1,7 +1,8 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Model.Channels;-namespace MediaBrowser.Controller.Channels{public class InternalChannelItemQuerydiff --git a/MediaBrowser.Controller/Collections/CollectionCreationOptions.cs b/MediaBrowser.Controller/Collections/CollectionCreationOptions.csindex 1e7549d2bc..f6037d05e1 100644--- a/MediaBrowser.Controller/Collections/CollectionCreationOptions.cs+++ b/MediaBrowser.Controller/Collections/CollectionCreationOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.Entities;@@ -6,6 +8,13 @@ namespace MediaBrowser.Controller.Collections{public class CollectionCreationOptions : IHasProviderIds{+ public CollectionCreationOptions()+ {+ ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);+ ItemIdList = Array.Empty<string>();+ UserIds = Array.Empty<Guid>();+ }+public string Name { get; set; }public Guid? ParentId { get; set; }@@ -17,12 +26,5 @@ namespace MediaBrowser.Controller.Collectionspublic string[] ItemIdList { get; set; }public Guid[] UserIds { get; set; }-- public CollectionCreationOptions()- {- ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);- ItemIdList = Array.Empty<string>();- UserIds = Array.Empty<Guid>();- }}}diff --git a/MediaBrowser.Controller/Collections/CollectionEvents.cs b/MediaBrowser.Controller/Collections/CollectionEvents.csindex bfc6af463f..ce59b4ada2 100644--- a/MediaBrowser.Controller/Collections/CollectionEvents.cs+++ b/MediaBrowser.Controller/Collections/CollectionEvents.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/Collections/ICollectionManager.cs b/MediaBrowser.Controller/Collections/ICollectionManager.csindex 3861ae634a..a6991e2eac 100644--- a/MediaBrowser.Controller/Collections/ICollectionManager.cs+++ b/MediaBrowser.Controller/Collections/ICollectionManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Devices/IDeviceManager.cs b/MediaBrowser.Controller/Devices/IDeviceManager.csindex 7d279230b5..55e022f151 100644--- a/MediaBrowser.Controller/Devices/IDeviceManager.cs+++ b/MediaBrowser.Controller/Devices/IDeviceManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using Jellyfin.Data.Entities;using MediaBrowser.Model.Devices;@@ -9,6 +11,8 @@ namespace MediaBrowser.Controller.Devices{public interface IDeviceManager{+ event EventHandler<GenericEventArgs<Tuple<string, DeviceOptions>>> DeviceOptionsUpdated;+/// <summary>/// Saves the capabilities./// </summary>@@ -44,7 +48,7 @@ namespace MediaBrowser.Controller.Devicesbool CanAccessDevice(User user, string deviceId);void UpdateDeviceOptions(string deviceId, DeviceOptions options);+DeviceOptions GetDeviceOptions(string deviceId);- event EventHandler<GenericEventArgs<Tuple<string, DeviceOptions>>> DeviceOptionsUpdated;}}diff --git a/MediaBrowser.Controller/Dlna/IDlnaManager.cs b/MediaBrowser.Controller/Dlna/IDlnaManager.csindex 41a7686a37..dc2d5a356a 100644--- a/MediaBrowser.Controller/Dlna/IDlnaManager.cs+++ b/MediaBrowser.Controller/Dlna/IDlnaManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Controller.Drawing;using MediaBrowser.Model.Dlna;diff --git a/MediaBrowser.Controller/Drawing/IImageEncoder.cs b/MediaBrowser.Controller/Drawing/IImageEncoder.csindex e09ccd204a..f9b2e6fef3 100644--- a/MediaBrowser.Controller/Drawing/IImageEncoder.cs+++ b/MediaBrowser.Controller/Drawing/IImageEncoder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.Drawing;diff --git a/MediaBrowser.Controller/Drawing/IImageProcessor.cs b/MediaBrowser.Controller/Drawing/IImageProcessor.csindex 69d7991652..b7edb10524 100644--- a/MediaBrowser.Controller/Drawing/IImageProcessor.cs+++ b/MediaBrowser.Controller/Drawing/IImageProcessor.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.IO;diff --git a/MediaBrowser.Controller/Drawing/ImageCollageOptions.cs b/MediaBrowser.Controller/Drawing/ImageCollageOptions.csindex 3f762fad07..fe0465d0d7 100644--- a/MediaBrowser.Controller/Drawing/ImageCollageOptions.cs+++ b/MediaBrowser.Controller/Drawing/ImageCollageOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Drawing{public class ImageCollageOptions@@ -7,16 +9,19 @@ namespace MediaBrowser.Controller.Drawing/// </summary>/// <value>The input paths.</value>public string[] InputPaths { get; set; }+/// <summary>/// Gets or sets the output path./// </summary>/// <value>The output path.</value>public string OutputPath { get; set; }+/// <summary>/// Gets or sets the width./// </summary>/// <value>The width.</value>public int Width { get; set; }+/// <summary>/// Gets or sets the height./// </summary>diff --git a/MediaBrowser.Controller/Drawing/ImageHelper.cs b/MediaBrowser.Controller/Drawing/ImageHelper.csindex e1273fe7f3..87c28d5773 100644--- a/MediaBrowser.Controller/Drawing/ImageHelper.cs+++ b/MediaBrowser.Controller/Drawing/ImageHelper.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Controller.Entities;using MediaBrowser.Model.Drawing;diff --git a/MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs b/MediaBrowser.Controller/Drawing/ImageProcessingOptions.csindex 31d2c1bd49..22105b7d79 100644--- a/MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs+++ b/MediaBrowser.Controller/Drawing/ImageProcessingOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.IO;diff --git a/MediaBrowser.Controller/Drawing/ImageProcessorExtensions.cs b/MediaBrowser.Controller/Drawing/ImageProcessorExtensions.csindex df9050de5e..d3a2b4dbf2 100644--- a/MediaBrowser.Controller/Drawing/ImageProcessorExtensions.cs+++ b/MediaBrowser.Controller/Drawing/ImageProcessorExtensions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Controller.Entities;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Drawing/ImageStream.cs b/MediaBrowser.Controller/Drawing/ImageStream.csindex 74ac24ec94..46f58ec159 100644--- a/MediaBrowser.Controller/Drawing/ImageStream.cs+++ b/MediaBrowser.Controller/Drawing/ImageStream.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.IO;using MediaBrowser.Model.Drawing;@@ -11,6 +13,7 @@ namespace MediaBrowser.Controller.Drawing/// </summary>/// <value>The stream.</value>public Stream Stream { get; set; }+/// <summary>/// Gets or sets the format./// </summary>diff --git a/MediaBrowser.Controller/Dto/DtoOptions.cs b/MediaBrowser.Controller/Dto/DtoOptions.csindex cf301f1e44..76f20ace2a 100644--- a/MediaBrowser.Controller/Dto/DtoOptions.cs+++ b/MediaBrowser.Controller/Dto/DtoOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Linq;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Entities/AggregateFolder.cs b/MediaBrowser.Controller/Entities/AggregateFolder.csindex e1c800e619..6ebea5f449 100644--- a/MediaBrowser.Controller/Entities/AggregateFolder.cs+++ b/MediaBrowser.Controller/Entities/AggregateFolder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Concurrent;using System.Collections.Generic;@@ -57,6 +59,7 @@ namespace MediaBrowser.Controller.Entitiesprivate Guid[] _childrenIds = null;private readonly object _childIdsLock = new object();+protected override List<BaseItem> LoadChildren(){lock (_childIdsLock)diff --git a/MediaBrowser.Controller/Entities/Audio/Audio.cs b/MediaBrowser.Controller/Entities/Audio/Audio.csindex 98f802b5d5..2c6dea02cd 100644--- a/MediaBrowser.Controller/Entities/Audio/Audio.cs+++ b/MediaBrowser.Controller/Entities/Audio/Audio.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/Audio/IHasAlbumArtist.cs b/MediaBrowser.Controller/Entities/Audio/IHasAlbumArtist.csindex 056f31f780..f6d3cd6cc2 100644--- a/MediaBrowser.Controller/Entities/Audio/IHasAlbumArtist.cs+++ b/MediaBrowser.Controller/Entities/Audio/IHasAlbumArtist.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;namespace MediaBrowser.Controller.Entities.Audiodiff --git a/MediaBrowser.Controller/Entities/Audio/IHasMusicGenres.cs b/MediaBrowser.Controller/Entities/Audio/IHasMusicGenres.csindex 5ae056050d..ac4dd1688b 100644--- a/MediaBrowser.Controller/Entities/Audio/IHasMusicGenres.cs+++ b/MediaBrowser.Controller/Entities/Audio/IHasMusicGenres.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Entities.Audio{public interface IHasMusicGenresdiff --git a/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs b/MediaBrowser.Controller/Entities/Audio/MusicAlbum.csindex 5a1ddeecef..48cd9371a0 100644--- a/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs+++ b/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/Audio/MusicArtist.cs b/MediaBrowser.Controller/Entities/Audio/MusicArtist.csindex ea5c41caa4..397a68ff7e 100644--- a/MediaBrowser.Controller/Entities/Audio/MusicArtist.cs+++ b/MediaBrowser.Controller/Entities/Audio/MusicArtist.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs b/MediaBrowser.Controller/Entities/Audio/MusicGenre.csindex 4f6aa07767..5a117a6b15 100644--- a/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs+++ b/MediaBrowser.Controller/Entities/Audio/MusicGenre.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Text.Json.Serialization;diff --git a/MediaBrowser.Controller/Entities/AudioBook.cs b/MediaBrowser.Controller/Entities/AudioBook.csindex 11ff8a2573..f4bd851e1b 100644--- a/MediaBrowser.Controller/Entities/AudioBook.cs+++ b/MediaBrowser.Controller/Entities/AudioBook.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Text.Json.Serialization;using Jellyfin.Data.Enums;@@ -15,8 +17,10 @@ namespace MediaBrowser.Controller.Entities[JsonIgnore]public string SeriesPresentationUniqueKey { get; set; }+[JsonIgnore]public string SeriesName { get; set; }+[JsonIgnore]public Guid SeriesId { get; set; }diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.csindex 9e595ddc3e..24978d8dde 100644--- a/MediaBrowser.Controller/Entities/BaseItem.cs+++ b/MediaBrowser.Controller/Entities/BaseItem.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Entities/BaseItemExtensions.cs b/MediaBrowser.Controller/Entities/BaseItemExtensions.csindex 815239be24..8a69971d0f 100644--- a/MediaBrowser.Controller/Entities/BaseItemExtensions.cs+++ b/MediaBrowser.Controller/Entities/BaseItemExtensions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Linq;using MediaBrowser.Model.Entities;using MediaBrowser.Model.IO;diff --git a/MediaBrowser.Controller/Entities/BasePluginFolder.cs b/MediaBrowser.Controller/Entities/BasePluginFolder.csindex 106385bc65..ef5a5a734c 100644--- a/MediaBrowser.Controller/Entities/BasePluginFolder.cs+++ b/MediaBrowser.Controller/Entities/BasePluginFolder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Text.Json.Serialization;namespace MediaBrowser.Controller.Entities@@ -26,13 +28,5 @@ namespace MediaBrowser.Controller.Entities[JsonIgnore]public override bool SupportsPeople => false;-- // public override double? GetDefaultPrimaryImageAspectRatio()- //{- // double value = 16;- // value /= 9;-- // return value;- //}}}diff --git a/MediaBrowser.Controller/Entities/Book.cs b/MediaBrowser.Controller/Entities/Book.csindex 11c6c6e455..55945283c9 100644--- a/MediaBrowser.Controller/Entities/Book.cs+++ b/MediaBrowser.Controller/Entities/Book.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Linq;using System.Text.Json.Serialization;@@ -49,11 +51,13 @@ namespace MediaBrowser.Controller.Entitiesreturn SeriesId;}+ /// <inheritdoc />public override bool CanDownload(){return IsFileProtocol;}+ /// <inheritdoc />public override UnratedItem GetBlockUnratedType(){return UnratedItem.Book;diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.csindex 5c6a9d2a28..d25545a2fc 100644--- a/MediaBrowser.Controller/Entities/CollectionFolder.cs+++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.IO;diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex 11542c1cad..7687cf12b6 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -1,5 +1,7 @@#pragma warning disable CS1591+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Entities/Genre.cs b/MediaBrowser.Controller/Entities/Genre.csindex 437def532e..db6c85caf7 100644--- a/MediaBrowser.Controller/Entities/Genre.cs+++ b/MediaBrowser.Controller/Entities/Genre.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Text.Json.Serialization;diff --git a/MediaBrowser.Controller/Entities/ICollectionFolder.cs b/MediaBrowser.Controller/Entities/ICollectionFolder.csindex 245b23ff0b..b84a9fa6f1 100644--- a/MediaBrowser.Controller/Entities/ICollectionFolder.cs+++ b/MediaBrowser.Controller/Entities/ICollectionFolder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/IHasMediaSources.cs b/MediaBrowser.Controller/Entities/IHasMediaSources.csindex 213c0a7946..a7b60d1688 100644--- a/MediaBrowser.Controller/Entities/IHasMediaSources.cs+++ b/MediaBrowser.Controller/Entities/IHasMediaSources.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.Dto;@@ -7,15 +9,19 @@ namespace MediaBrowser.Controller.Entities{public interface IHasMediaSources{+ Guid Id { get; set; }++ long? RunTimeTicks { get; set; }++ string Path { get; }+/// <summary>/// Gets the media sources./// </summary>List<MediaSourceInfo> GetMediaSources(bool enablePathSubstitution);+List<MediaStream> GetMediaStreams();- Guid Id { get; set; }- long? RunTimeTicks { get; set; }- string Path { get; }}}diff --git a/MediaBrowser.Controller/Entities/IHasProgramAttributes.cs b/MediaBrowser.Controller/Entities/IHasProgramAttributes.csindex fd1c19c977..f747b5149a 100644--- a/MediaBrowser.Controller/Entities/IHasProgramAttributes.cs+++ b/MediaBrowser.Controller/Entities/IHasProgramAttributes.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Model.LiveTv;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/IHasSeries.cs b/MediaBrowser.Controller/Entities/IHasSeries.csindex 475a2ab856..5444f1f523 100644--- a/MediaBrowser.Controller/Entities/IHasSeries.cs+++ b/MediaBrowser.Controller/Entities/IHasSeries.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Entities@@ -10,12 +12,15 @@ namespace MediaBrowser.Controller.Entities/// <value>The name of the series.</value>string SeriesName { get; set; }+ Guid SeriesId { get; set; }++ string SeriesPresentationUniqueKey { get; set; }+string FindSeriesName();+string FindSeriesSortName();- Guid SeriesId { get; set; }Guid FindSeriesId();- string SeriesPresentationUniqueKey { get; set; }string FindSeriesPresentationUniqueKey();}diff --git a/MediaBrowser.Controller/Entities/IHasStartDate.cs b/MediaBrowser.Controller/Entities/IHasStartDate.csindex 1ecde9af48..dab15eb018 100644--- a/MediaBrowser.Controller/Entities/IHasStartDate.cs+++ b/MediaBrowser.Controller/Entities/IHasStartDate.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/IHasTrailers.cs b/MediaBrowser.Controller/Entities/IHasTrailers.csindex dd8e3c45f5..d1f6f2b7e2 100644--- a/MediaBrowser.Controller/Entities/IHasTrailers.cs+++ b/MediaBrowser.Controller/Entities/IHasTrailers.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Entities/IItemByName.cs b/MediaBrowser.Controller/Entities/IItemByName.csindex 8ef5c8d961..cac8aa61a5 100644--- a/MediaBrowser.Controller/Entities/IItemByName.cs+++ b/MediaBrowser.Controller/Entities/IItemByName.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/IMetadataContainer.cs b/MediaBrowser.Controller/Entities/IMetadataContainer.csindex a384c0df3b..77f5cfb79e 100644--- a/MediaBrowser.Controller/Entities/IMetadataContainer.cs+++ b/MediaBrowser.Controller/Entities/IMetadataContainer.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Entities/ISupportsPlaceHolders.cs b/MediaBrowser.Controller/Entities/ISupportsPlaceHolders.csindex 3e96771c30..cdda8ea399 100644--- a/MediaBrowser.Controller/Entities/ISupportsPlaceHolders.cs+++ b/MediaBrowser.Controller/Entities/ISupportsPlaceHolders.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Entities{public interface ISupportsPlaceHoldersdiff --git a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs b/MediaBrowser.Controller/Entities/InternalItemsQuery.csindex 466cda67cb..904752a229 100644--- a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs+++ b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/InternalPeopleQuery.cs b/MediaBrowser.Controller/Entities/InternalPeopleQuery.csindex 011975dd2c..4e09ee5736 100644--- a/MediaBrowser.Controller/Entities/InternalPeopleQuery.cs+++ b/MediaBrowser.Controller/Entities/InternalPeopleQuery.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/ItemImageInfo.cs b/MediaBrowser.Controller/Entities/ItemImageInfo.csindex 12f5db2e0b..570d8eec0c 100644--- a/MediaBrowser.Controller/Entities/ItemImageInfo.cs+++ b/MediaBrowser.Controller/Entities/ItemImageInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Text.Json.Serialization;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Entities/LinkedChild.cs b/MediaBrowser.Controller/Entities/LinkedChild.csindex 65753a26ec..8e0f721e77 100644--- a/MediaBrowser.Controller/Entities/LinkedChild.cs+++ b/MediaBrowser.Controller/Entities/LinkedChild.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Entities/Movies/BoxSet.cs b/MediaBrowser.Controller/Entities/Movies/BoxSet.csindex c131c5430a..8de88cc1b1 100644--- a/MediaBrowser.Controller/Entities/Movies/BoxSet.cs+++ b/MediaBrowser.Controller/Entities/Movies/BoxSet.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/MusicVideo.cs b/MediaBrowser.Controller/Entities/MusicVideo.csindex 6e7f2812d0..b278a01423 100644--- a/MediaBrowser.Controller/Entities/MusicVideo.cs+++ b/MediaBrowser.Controller/Entities/MusicVideo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Text.Json.Serialization;diff --git a/MediaBrowser.Controller/Entities/PeopleHelper.cs b/MediaBrowser.Controller/Entities/PeopleHelper.csindex c394957593..1f3758a73a 100644--- a/MediaBrowser.Controller/Entities/PeopleHelper.cs+++ b/MediaBrowser.Controller/Entities/PeopleHelper.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/Person.cs b/MediaBrowser.Controller/Entities/Person.csindex 331d17fc80..c4fcb0267a 100644--- a/MediaBrowser.Controller/Entities/Person.cs+++ b/MediaBrowser.Controller/Entities/Person.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Text.Json.Serialization;diff --git a/MediaBrowser.Controller/Entities/PersonInfo.cs b/MediaBrowser.Controller/Entities/PersonInfo.csindex f3ec73b322..4ff9b0955c 100644--- a/MediaBrowser.Controller/Entities/PersonInfo.cs+++ b/MediaBrowser.Controller/Entities/PersonInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Entities/Photo.cs b/MediaBrowser.Controller/Entities/Photo.csindex 82d0826c5a..1485d4c792 100644--- a/MediaBrowser.Controller/Entities/Photo.cs+++ b/MediaBrowser.Controller/Entities/Photo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Text.Json.Serialization;using MediaBrowser.Model.Drawing;diff --git a/MediaBrowser.Controller/Entities/PhotoAlbum.cs b/MediaBrowser.Controller/Entities/PhotoAlbum.csindex b86f1ac2ae..a7ecb9061c 100644--- a/MediaBrowser.Controller/Entities/PhotoAlbum.cs+++ b/MediaBrowser.Controller/Entities/PhotoAlbum.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Text.Json.Serialization;namespace MediaBrowser.Controller.Entitiesdiff --git a/MediaBrowser.Controller/Entities/Share.cs b/MediaBrowser.Controller/Entities/Share.csindex a51f2b4523..50f1655f39 100644--- a/MediaBrowser.Controller/Entities/Share.cs+++ b/MediaBrowser.Controller/Entities/Share.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Entities{public interface IHasSharesdiff --git a/MediaBrowser.Controller/Entities/SourceType.cs b/MediaBrowser.Controller/Entities/SourceType.csindex 927483b939..be19e1bdae 100644--- a/MediaBrowser.Controller/Entities/SourceType.cs+++ b/MediaBrowser.Controller/Entities/SourceType.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Entities{public enum SourceTypediff --git a/MediaBrowser.Controller/Entities/Studio.cs b/MediaBrowser.Controller/Entities/Studio.csindex 1f64de6a41..9018ddb75e 100644--- a/MediaBrowser.Controller/Entities/Studio.cs+++ b/MediaBrowser.Controller/Entities/Studio.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Text.Json.Serialization;diff --git a/MediaBrowser.Controller/Entities/TV/Episode.cs b/MediaBrowser.Controller/Entities/TV/Episode.csindex 9a5f9097d7..dc12fbbead 100644--- a/MediaBrowser.Controller/Entities/TV/Episode.cs+++ b/MediaBrowser.Controller/Entities/TV/Episode.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Entities/TV/Season.cs b/MediaBrowser.Controller/Entities/TV/Season.csindex 2aba1d03d8..93bdd6e706 100644--- a/MediaBrowser.Controller/Entities/TV/Season.cs+++ b/MediaBrowser.Controller/Entities/TV/Season.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/TV/Series.cs b/MediaBrowser.Controller/Entities/TV/Series.csindex 23d9600920..72c696c1ae 100644--- a/MediaBrowser.Controller/Entities/TV/Series.cs+++ b/MediaBrowser.Controller/Entities/TV/Series.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Entities/TagExtensions.cs b/MediaBrowser.Controller/Entities/TagExtensions.csindex 97f5906355..2ce396daf0 100644--- a/MediaBrowser.Controller/Entities/TagExtensions.cs+++ b/MediaBrowser.Controller/Entities/TagExtensions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/Trailer.cs b/MediaBrowser.Controller/Entities/Trailer.csindex 83e9ce1e75..9ae8ad7087 100644--- a/MediaBrowser.Controller/Entities/Trailer.cs+++ b/MediaBrowser.Controller/Entities/Trailer.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Entities/UserItemData.cs b/MediaBrowser.Controller/Entities/UserItemData.csindex 3298fa2d33..db63c42e4c 100644--- a/MediaBrowser.Controller/Entities/UserItemData.cs+++ b/MediaBrowser.Controller/Entities/UserItemData.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Text.Json.Serialization;@@ -24,6 +26,7 @@ namespace MediaBrowser.Controller.Entities/// The _rating./// </summary>private double? _rating;+/// <summary>/// Gets or sets the users 0-10 rating./// </summary>@@ -75,11 +78,13 @@ namespace MediaBrowser.Controller.Entities/// </summary>/// <value><c>true</c> if played; otherwise, <c>false</c>.</value>public bool Played { get; set; }+/// <summary>/// Gets or sets the index of the audio stream./// </summary>/// <value>The index of the audio stream.</value>public int? AudioStreamIndex { get; set; }+/// <summary>/// Gets or sets the index of the subtitle stream./// </summary>diff --git a/MediaBrowser.Controller/Entities/UserRootFolder.cs b/MediaBrowser.Controller/Entities/UserRootFolder.csindex 39f4e0b6cf..7f7224ae07 100644--- a/MediaBrowser.Controller/Entities/UserRootFolder.cs+++ b/MediaBrowser.Controller/Entities/UserRootFolder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Entities/UserView.cs b/MediaBrowser.Controller/Entities/UserView.csindex 1fba8a30fe..b1da4d64cb 100644--- a/MediaBrowser.Controller/Entities/UserView.cs+++ b/MediaBrowser.Controller/Entities/UserView.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;@@ -6,7 +8,6 @@ using System.Threading.Tasks;using Jellyfin.Data.Entities;using MediaBrowser.Controller.TV;using MediaBrowser.Model.Querying;-using Microsoft.Extensions.Logging;namespace MediaBrowser.Controller.Entities{diff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.csindex eeff78e103..07f3818811 100644--- a/MediaBrowser.Controller/Entities/Video.cs+++ b/MediaBrowser.Controller/Entities/Video.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Entities/Year.cs b/MediaBrowser.Controller/Entities/Year.csindex c88498640b..b2e4d307a6 100644--- a/MediaBrowser.Controller/Entities/Year.cs+++ b/MediaBrowser.Controller/Entities/Year.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Extensions/StringExtensions.cs b/MediaBrowser.Controller/Extensions/StringExtensions.csindex e09543e145..3cc1f328a9 100644--- a/MediaBrowser.Controller/Extensions/StringExtensions.cs+++ b/MediaBrowser.Controller/Extensions/StringExtensions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Globalization;using System.Linq;diff --git a/MediaBrowser.Controller/IDisplayPreferencesManager.cs b/MediaBrowser.Controller/IDisplayPreferencesManager.csindex b6bfed3e59..856b91b5d0 100644--- a/MediaBrowser.Controller/IDisplayPreferencesManager.cs+++ b/MediaBrowser.Controller/IDisplayPreferencesManager.cs@@ -1,4 +1,4 @@-using System;+using System;using System.Collections.Generic;using Jellyfin.Data.Entities;diff --git a/MediaBrowser.Controller/IO/FileData.cs b/MediaBrowser.Controller/IO/FileData.csindex e655f50eb7..9bc4cac39d 100644--- a/MediaBrowser.Controller/IO/FileData.cs+++ b/MediaBrowser.Controller/IO/FileData.cs@@ -8,28 +8,17 @@ using Microsoft.Extensions.Logging;namespace MediaBrowser.Controller.IO{/// <summary>- /// Provides low level File access that is much faster than the File/Directory api's+ /// Provides low level File access that is much faster than the File/Directory api's./// </summary>public static class FileData{- private static Dictionary<string, FileSystemMetadata> GetFileSystemDictionary(FileSystemMetadata[] list)- {- var dict = new Dictionary<string, FileSystemMetadata>(StringComparer.OrdinalIgnoreCase);-- foreach (var file in list)- {- dict[file.FullName] = file;- }-- return dict;- }-/// <summary>/// Gets the filtered file system entries./// </summary>/// <param name="directoryService">The directory service.</param>/// <param name="path">The path.</param>/// <param name="fileSystem">The file system.</param>+ /// <param name="appHost">The application host.</param>/// <param name="logger">The logger.</param>/// <param name="args">The args.</param>/// <param name="flattenFolderDepth">The flatten folder depth.</param>diff --git a/MediaBrowser.Controller/IResourceFileManager.cs b/MediaBrowser.Controller/IResourceFileManager.csindex 69a51cec83..26f0424b7a 100644--- a/MediaBrowser.Controller/IResourceFileManager.cs+++ b/MediaBrowser.Controller/IResourceFileManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller{public interface IResourceFileManagerdiff --git a/MediaBrowser.Controller/IServerApplicationHost.cs b/MediaBrowser.Controller/IServerApplicationHost.csindex abdb0f695d..2db6311578 100644--- a/MediaBrowser.Controller/IServerApplicationHost.cs+++ b/MediaBrowser.Controller/IServerApplicationHost.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Net;diff --git a/MediaBrowser.Controller/IServerApplicationPaths.cs b/MediaBrowser.Controller/IServerApplicationPaths.csindex 155bf9177b..be57d6bcae 100644--- a/MediaBrowser.Controller/IServerApplicationPaths.cs+++ b/MediaBrowser.Controller/IServerApplicationPaths.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Common.Configuration;namespace MediaBrowser.Controller@@ -81,6 +83,10 @@ namespace MediaBrowser.Controller/// <value>The internal metadata path.</value>string InternalMetadataPath { get; }+ /// <summary>+ /// Gets the virtual internal metadata path, either a custom path or the default.+ /// </summary>+ /// <value>The virtual internal metadata path.</value>string VirtualInternalMetadataPath { get; }/// <summary>diff --git a/MediaBrowser.Controller/Library/DeleteOptions.cs b/MediaBrowser.Controller/Library/DeleteOptions.csindex 2944d82592..b7417efcb5 100644--- a/MediaBrowser.Controller/Library/DeleteOptions.cs+++ b/MediaBrowser.Controller/Library/DeleteOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Library{public class DeleteOptionsdiff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.csindex d53b1fc8da..d2f937d4f4 100644--- a/MediaBrowser.Controller/Library/ILibraryManager.cs+++ b/MediaBrowser.Controller/Library/ILibraryManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;@@ -63,6 +65,7 @@ namespace MediaBrowser.Controller.Library/// Finds the by path./// </summary>/// <param name="path">The path.</param>+ /// <param name="isFolder"><c>true</c> is the path is a directory; otherwise <c>false</c>.</param>/// <returns>BaseItem.</returns>BaseItem FindByPath(string path, bool? isFolder);diff --git a/MediaBrowser.Controller/Library/ILibraryMonitor.cs b/MediaBrowser.Controller/Library/ILibraryMonitor.csindex 233cfb197d..455054bd12 100644--- a/MediaBrowser.Controller/Library/ILibraryMonitor.cs+++ b/MediaBrowser.Controller/Library/ILibraryMonitor.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Librarydiff --git a/MediaBrowser.Controller/Library/ILiveStream.cs b/MediaBrowser.Controller/Library/ILiveStream.csindex 7c9a9b20e0..ff25be6577 100644--- a/MediaBrowser.Controller/Library/ILiveStream.cs+++ b/MediaBrowser.Controller/Library/ILiveStream.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Threading;using System.Threading.Tasks;using MediaBrowser.Model.Dto;@@ -6,8 +8,6 @@ namespace MediaBrowser.Controller.Library{public interface ILiveStream{- Task Open(CancellationToken openCancellationToken);- Task Close();int ConsumerCount { get; set; }string OriginalStreamId { get; set; }@@ -19,5 +19,9 @@ namespace MediaBrowser.Controller.LibraryMediaSourceInfo MediaSource { get; set; }string UniqueId { get; }++ Task Open(CancellationToken openCancellationToken);++ Task Close();}}diff --git a/MediaBrowser.Controller/Library/IMediaSourceManager.cs b/MediaBrowser.Controller/Library/IMediaSourceManager.csindex 94528ff771..9e7b1e6085 100644--- a/MediaBrowser.Controller/Library/IMediaSourceManager.cs+++ b/MediaBrowser.Controller/Library/IMediaSourceManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.IO;diff --git a/MediaBrowser.Controller/Library/IMetadataFileSaver.cs b/MediaBrowser.Controller/Library/IMetadataFileSaver.csindex 5b92388ce6..9c6f03a232 100644--- a/MediaBrowser.Controller/Library/IMetadataFileSaver.cs+++ b/MediaBrowser.Controller/Library/IMetadataFileSaver.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Controller.Entities;namespace MediaBrowser.Controller.Librarydiff --git a/MediaBrowser.Controller/Library/IMusicManager.cs b/MediaBrowser.Controller/Library/IMusicManager.csindex 36b250ec94..d12f008e77 100644--- a/MediaBrowser.Controller/Library/IMusicManager.cs+++ b/MediaBrowser.Controller/Library/IMusicManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using Jellyfin.Data.Entities;using MediaBrowser.Controller.Dto;diff --git a/MediaBrowser.Controller/Library/IUserDataManager.cs b/MediaBrowser.Controller/Library/IUserDataManager.csindex d08ad4cac0..c6a83e4dc4 100644--- a/MediaBrowser.Controller/Library/IUserDataManager.cs+++ b/MediaBrowser.Controller/Library/IUserDataManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;@@ -28,6 +30,7 @@ namespace MediaBrowser.Controller.Library/// <param name="reason">The reason.</param>/// <param name="cancellationToken">The cancellation token.</param>void SaveUserData(Guid userId, BaseItem item, UserItemData userData, UserDataSaveReason reason, CancellationToken cancellationToken);+void SaveUserData(User user, BaseItem item, UserItemData userData, UserDataSaveReason reason, CancellationToken cancellationToken);UserItemData GetUserData(User user, BaseItem item);diff --git a/MediaBrowser.Controller/Library/IUserManager.cs b/MediaBrowser.Controller/Library/IUserManager.csindex 6685861a9a..ffd9739f68 100644--- a/MediaBrowser.Controller/Library/IUserManager.cs+++ b/MediaBrowser.Controller/Library/IUserManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Library/IUserViewManager.cs b/MediaBrowser.Controller/Library/IUserViewManager.csindex 0d7da75794..8d541e8b68 100644--- a/MediaBrowser.Controller/Library/IUserViewManager.cs+++ b/MediaBrowser.Controller/Library/IUserViewManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Controller.Dto;@@ -10,6 +12,7 @@ namespace MediaBrowser.Controller.Librarypublic interface IUserViewManager{Folder[] GetUserViews(UserViewQuery query);+UserView GetUserSubView(Guid parentId, string type, string localizationKey, string sortName);List<Tuple<BaseItem, List<BaseItem>>> GetLatestItems(LatestItemsQuery request, DtoOptions options);diff --git a/MediaBrowser.Controller/Library/IntroInfo.cs b/MediaBrowser.Controller/Library/IntroInfo.csindex 0e761d549d..283cc631ca 100644--- a/MediaBrowser.Controller/Library/IntroInfo.cs+++ b/MediaBrowser.Controller/Library/IntroInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Librarydiff --git a/MediaBrowser.Controller/Library/ItemChangeEventArgs.cs b/MediaBrowser.Controller/Library/ItemChangeEventArgs.csindex b5c48321ba..1798a4fada 100644--- a/MediaBrowser.Controller/Library/ItemChangeEventArgs.cs+++ b/MediaBrowser.Controller/Library/ItemChangeEventArgs.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Controller.Entities;namespace MediaBrowser.Controller.Librarydiff --git a/MediaBrowser.Controller/Library/ItemResolveArgs.cs b/MediaBrowser.Controller/Library/ItemResolveArgs.csindex 2e5dcc4c53..6a0dbeba2f 100644--- a/MediaBrowser.Controller/Library/ItemResolveArgs.cs+++ b/MediaBrowser.Controller/Library/ItemResolveArgs.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Library/ItemUpdateType.cs b/MediaBrowser.Controller/Library/ItemUpdateType.csindex b62f314ba5..1f3ebb4993 100644--- a/MediaBrowser.Controller/Library/ItemUpdateType.cs+++ b/MediaBrowser.Controller/Library/ItemUpdateType.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Librarydiff --git a/MediaBrowser.Controller/Library/LibraryManagerExtensions.cs b/MediaBrowser.Controller/Library/LibraryManagerExtensions.csindex 037b0b62c2..9581603f04 100644--- a/MediaBrowser.Controller/Library/LibraryManagerExtensions.cs+++ b/MediaBrowser.Controller/Library/LibraryManagerExtensions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/Library/MetadataConfigurationStore.cs b/MediaBrowser.Controller/Library/MetadataConfigurationStore.csindex 31adbdcf38..f16304db01 100644--- a/MediaBrowser.Controller/Library/MetadataConfigurationStore.cs+++ b/MediaBrowser.Controller/Library/MetadataConfigurationStore.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Common.Configuration;using MediaBrowser.Model.Configuration;diff --git a/MediaBrowser.Controller/Library/NameExtensions.cs b/MediaBrowser.Controller/Library/NameExtensions.csindex 24d0347e9d..21f33ad190 100644--- a/MediaBrowser.Controller/Library/NameExtensions.cs+++ b/MediaBrowser.Controller/Library/NameExtensions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs b/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.csindex 08cfea3c31..a2be3a42ab 100644--- a/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs+++ b/MediaBrowser.Controller/Library/PlaybackProgressEventArgs.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using Jellyfin.Data.Entities;@@ -12,6 +14,11 @@ namespace MediaBrowser.Controller.Library/// </summary>public class PlaybackProgressEventArgs : EventArgs{+ public PlaybackProgressEventArgs()+ {+ Users = new List<User>();+ }+public List<User> Users { get; set; }public long? PlaybackPositionTicks { get; set; }@@ -35,10 +42,5 @@ namespace MediaBrowser.Controller.Librarypublic string PlaySessionId { get; set; }public SessionInfo Session { get; set; }-- public PlaybackProgressEventArgs()- {- Users = new List<User>();- }}}diff --git a/MediaBrowser.Controller/Library/PlaybackStopEventArgs.cs b/MediaBrowser.Controller/Library/PlaybackStopEventArgs.csindex 12add25732..f0d77ba2d4 100644--- a/MediaBrowser.Controller/Library/PlaybackStopEventArgs.cs+++ b/MediaBrowser.Controller/Library/PlaybackStopEventArgs.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Library{public class PlaybackStopEventArgs : PlaybackProgressEventArgsdiff --git a/MediaBrowser.Controller/Library/UserDataSaveEventArgs.cs b/MediaBrowser.Controller/Library/UserDataSaveEventArgs.csindex fa01927843..cd91097535 100644--- a/MediaBrowser.Controller/Library/UserDataSaveEventArgs.cs+++ b/MediaBrowser.Controller/Library/UserDataSaveEventArgs.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/LiveTv/ChannelInfo.cs b/MediaBrowser.Controller/LiveTv/ChannelInfo.csindex 67d0df4fdc..d7afd21184 100644--- a/MediaBrowser.Controller/LiveTv/ChannelInfo.cs+++ b/MediaBrowser.Controller/LiveTv/ChannelInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Model.LiveTv;namespace MediaBrowser.Controller.LiveTvdiff --git a/MediaBrowser.Controller/LiveTv/IListingsProvider.cs b/MediaBrowser.Controller/LiveTv/IListingsProvider.csindex 2ea0a748e1..038ff2eaeb 100644--- a/MediaBrowser.Controller/LiveTv/IListingsProvider.cs+++ b/MediaBrowser.Controller/LiveTv/IListingsProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs b/MediaBrowser.Controller/LiveTv/ILiveTvManager.csindex f619b011bf..0794422153 100644--- a/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs+++ b/MediaBrowser.Controller/LiveTv/ILiveTvManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;@@ -105,6 +107,7 @@ namespace MediaBrowser.Controller.LiveTv/// </summary>/// <param name="id">The identifier.</param>/// <param name="mediaSourceId">The media source identifier.</param>+ /// <param name="currentLiveStreams">The current live streams.</param>/// <param name="cancellationToken">The cancellation token.</param>/// <returns>Task{StreamResponseInfo}.</returns>Task<Tuple<MediaSourceInfo, ILiveStream>> GetChannelStream(string id, string mediaSourceId, List<ILiveStream> currentLiveStreams, CancellationToken cancellationToken);diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs b/MediaBrowser.Controller/LiveTv/ILiveTvService.csindex b71a766485..3ca1d165ef 100644--- a/MediaBrowser.Controller/LiveTv/ILiveTvService.cs+++ b/MediaBrowser.Controller/LiveTv/ILiveTvService.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;diff --git a/MediaBrowser.Controller/LiveTv/ITunerHost.cs b/MediaBrowser.Controller/LiveTv/ITunerHost.csindex 3679e4f78f..ff92bf856c 100644--- a/MediaBrowser.Controller/LiveTv/ITunerHost.cs+++ b/MediaBrowser.Controller/LiveTv/ITunerHost.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;@@ -14,28 +16,37 @@ namespace MediaBrowser.Controller.LiveTv/// </summary>/// <value>The name.</value>string Name { get; }+/// <summary>/// Gets the type./// </summary>/// <value>The type.</value>string Type { get; }++ bool IsSupported { get; }+/// <summary>/// Gets the channels./// </summary>/// <returns>Task<IEnumerable<ChannelInfo>>.</returns>Task<List<ChannelInfo>> GetChannels(bool enableCache, CancellationToken cancellationToken);+/// <summary>/// Gets the tuner infos./// </summary>/// <param name="cancellationToken">The cancellation token.</param>/// <returns>Task<List<LiveTvTunerInfo>>.</returns>Task<List<LiveTvTunerInfo>> GetTunerInfos(CancellationToken cancellationToken);+/// <summary>/// Gets the channel stream./// </summary>/// <param name="channelId">The channel identifier.</param>/// <param name="streamId">The stream identifier.</param>+ /// <param name="currentLiveStreams">The current live streams.</param>+ /// <param name="cancellationToken">The cancellation token to cancel operation.</param>Task<ILiveStream> GetChannelStream(string channelId, string streamId, List<ILiveStream> currentLiveStreams, CancellationToken cancellationToken);+/// <summary>/// Gets the channel stream media sources./// </summary>@@ -45,10 +56,7 @@ namespace MediaBrowser.Controller.LiveTvTask<List<MediaSourceInfo>> GetChannelStreamMediaSources(string channelId, CancellationToken cancellationToken);Task<List<TunerHostInfo>> DiscoverDevices(int discoveryDurationMs, CancellationToken cancellationToken);- bool IsSupported- {- get;- }+}public interface IConfigurableTunerHostdiff --git a/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs b/MediaBrowser.Controller/LiveTv/LiveTvChannel.csindex aa7c12dd14..ec933caf34 100644--- a/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs+++ b/MediaBrowser.Controller/LiveTv/LiveTvChannel.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs b/MediaBrowser.Controller/LiveTv/LiveTvConflictException.csindex 0e09d1aeba..881c42c738 100644--- a/MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs+++ b/MediaBrowser.Controller/LiveTv/LiveTvConflictException.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.LiveTvdiff --git a/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs b/MediaBrowser.Controller/LiveTv/LiveTvProgram.csindex e1de01ff02..43af495dd6 100644--- a/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs+++ b/MediaBrowser.Controller/LiveTv/LiveTvProgram.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/LiveTv/LiveTvServiceStatusInfo.cs b/MediaBrowser.Controller/LiveTv/LiveTvServiceStatusInfo.csindex 67b2f0eb1c..02178297b1 100644--- a/MediaBrowser.Controller/LiveTv/LiveTvServiceStatusInfo.cs+++ b/MediaBrowser.Controller/LiveTv/LiveTvServiceStatusInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Model.LiveTv;@@ -5,6 +7,12 @@ namespace MediaBrowser.Controller.LiveTv{public class LiveTvServiceStatusInfo{+ public LiveTvServiceStatusInfo()+ {+ Tuners = new List<LiveTvTunerInfo>();+ IsVisible = true;+ }+/// <summary>/// Gets or sets the status./// </summary>@@ -39,11 +47,5 @@ namespace MediaBrowser.Controller.LiveTv/// </summary>/// <value><c>true</c> if this instance is visible; otherwise, <c>false</c>.</value>public bool IsVisible { get; set; }-- public LiveTvServiceStatusInfo()- {- Tuners = new List<LiveTvTunerInfo>();- IsVisible = true;- }}}diff --git a/MediaBrowser.Controller/LiveTv/LiveTvTunerInfo.cs b/MediaBrowser.Controller/LiveTv/LiveTvTunerInfo.csindex 2857f73f6d..739978e7ce 100644--- a/MediaBrowser.Controller/LiveTv/LiveTvTunerInfo.cs+++ b/MediaBrowser.Controller/LiveTv/LiveTvTunerInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Model.LiveTv;@@ -5,6 +7,11 @@ namespace MediaBrowser.Controller.LiveTv{public class LiveTvTunerInfo{+ public LiveTvTunerInfo()+ {+ Clients = new List<string>();+ }+/// <summary>/// Gets or sets the type of the source./// </summary>@@ -64,10 +71,5 @@ namespace MediaBrowser.Controller.LiveTv/// </summary>/// <value><c>true</c> if this instance can reset; otherwise, <c>false</c>.</value>public bool CanReset { get; set; }-- public LiveTvTunerInfo()- {- Clients = new List<string>();- }}}diff --git a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs b/MediaBrowser.Controller/LiveTv/ProgramInfo.csindex d06a15323a..bdcffd5cae 100644--- a/MediaBrowser.Controller/LiveTv/ProgramInfo.cs+++ b/MediaBrowser.Controller/LiveTv/ProgramInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.LiveTv;diff --git a/MediaBrowser.Controller/LiveTv/RecordingInfo.cs b/MediaBrowser.Controller/LiveTv/RecordingInfo.csindex b9e0218ab2..303882b7ef 100644--- a/MediaBrowser.Controller/LiveTv/RecordingInfo.cs+++ b/MediaBrowser.Controller/LiveTv/RecordingInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.LiveTv;diff --git a/MediaBrowser.Controller/LiveTv/RecordingStatusChangedEventArgs.cs b/MediaBrowser.Controller/LiveTv/RecordingStatusChangedEventArgs.csindex 99460a6862..847c0ea8c0 100644--- a/MediaBrowser.Controller/LiveTv/RecordingStatusChangedEventArgs.cs+++ b/MediaBrowser.Controller/LiveTv/RecordingStatusChangedEventArgs.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Model.LiveTv;diff --git a/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs b/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.csindex 6e7acaae39..1343ecd982 100644--- a/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs+++ b/MediaBrowser.Controller/LiveTv/SeriesTimerInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.LiveTv;diff --git a/MediaBrowser.Controller/LiveTv/TimerInfo.cs b/MediaBrowser.Controller/LiveTv/TimerInfo.csindex df98bb6af8..bcef4666d2 100644--- a/MediaBrowser.Controller/LiveTv/TimerInfo.cs+++ b/MediaBrowser.Controller/LiveTv/TimerInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/LiveTv/TunerChannelMapping.cs b/MediaBrowser.Controller/LiveTv/TunerChannelMapping.csindex df3f55c26c..2759b314f5 100644--- a/MediaBrowser.Controller/LiveTv/TunerChannelMapping.cs+++ b/MediaBrowser.Controller/LiveTv/TunerChannelMapping.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.LiveTv{public class TunerChannelMappingdiff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csprojindex 67f17f7a52..9692cf921d 100644--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj@@ -30,6 +30,7 @@<TargetFramework>netstandard2.1</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile>+ <TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release' ">true</TreatWarningsAsErrors></PropertyGroup><!-- Code Analyzers-->diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.csindex 7b09f489e9..550916f823 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs b/MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.csindex b971b7c4bf..68bc502a0f 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs b/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.csindex 8f6fcb9ab1..4cbb63e46c 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingJobOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs b/MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.csindex 7c7e84de64..fbc8275341 100644--- a/MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs+++ b/MediaBrowser.Controller/MediaEncoding/IAttachmentExtractor.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.IO;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs b/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.csindex f60e702393..17d6dc5d27 100644--- a/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs+++ b/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;diff --git a/MediaBrowser.Controller/MediaEncoding/ISubtitleEncoder.cs b/MediaBrowser.Controller/MediaEncoding/ISubtitleEncoder.csindex 174e74f348..6ebf7f159b 100644--- a/MediaBrowser.Controller/MediaEncoding/ISubtitleEncoder.cs+++ b/MediaBrowser.Controller/MediaEncoding/ISubtitleEncoder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.IO;using System.Threading;using System.Threading.Tasks;@@ -12,7 +14,8 @@ namespace MediaBrowser.Controller.MediaEncoding/// Gets the subtitles./// </summary>/// <returns>Task{Stream}.</returns>- Task<Stream> GetSubtitles(BaseItem item,+ Task<Stream> GetSubtitles(+ BaseItem item,string mediaSourceId,int subtitleStreamIndex,string outputFormat,@@ -25,6 +28,7 @@ namespace MediaBrowser.Controller.MediaEncoding/// Gets the subtitle language encoding parameter./// </summary>/// <param name="path">The path.</param>+ /// <param name="language">The language.</param>/// <param name="protocol">The protocol.</param>/// <param name="cancellationToken">The cancellation token.</param>/// <returns>System.String.</returns>diff --git a/MediaBrowser.Controller/MediaEncoding/ImageEncodingOptions.cs b/MediaBrowser.Controller/MediaEncoding/ImageEncodingOptions.csindex 361dd79dcc..e7b4c8c15c 100644--- a/MediaBrowser.Controller/MediaEncoding/ImageEncodingOptions.cs+++ b/MediaBrowser.Controller/MediaEncoding/ImageEncodingOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.MediaEncoding{public class ImageEncodingOptionsdiff --git a/MediaBrowser.Controller/MediaEncoding/JobLogger.cs b/MediaBrowser.Controller/MediaEncoding/JobLogger.csindex c9f64c7075..ac520c5c44 100644--- a/MediaBrowser.Controller/MediaEncoding/JobLogger.cs+++ b/MediaBrowser.Controller/MediaEncoding/JobLogger.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Globalization;using System.IO;diff --git a/MediaBrowser.Controller/MediaEncoding/MediaEncoderHelpers.cs b/MediaBrowser.Controller/MediaEncoding/MediaEncoderHelpers.csindex 6c9bbb043e..ce53c23ad2 100644--- a/MediaBrowser.Controller/MediaEncoding/MediaEncoderHelpers.cs+++ b/MediaBrowser.Controller/MediaEncoding/MediaEncoderHelpers.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.IO;diff --git a/MediaBrowser.Controller/MediaEncoding/MediaInfoRequest.cs b/MediaBrowser.Controller/MediaEncoding/MediaInfoRequest.csindex 39a47792ae..59729de49c 100644--- a/MediaBrowser.Controller/MediaEncoding/MediaInfoRequest.cs+++ b/MediaBrowser.Controller/MediaEncoding/MediaInfoRequest.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Model.Dlna;using MediaBrowser.Model.Dto;diff --git a/MediaBrowser.Controller/Net/AuthenticatedAttribute.cs b/MediaBrowser.Controller/Net/AuthenticatedAttribute.csindex 87a7f7e10b..1366fd42e8 100644--- a/MediaBrowser.Controller/Net/AuthenticatedAttribute.cs+++ b/MediaBrowser.Controller/Net/AuthenticatedAttribute.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Model.Services;using Microsoft.AspNetCore.Http;@@ -53,7 +55,7 @@ namespace MediaBrowser.Controller.Net}public bool IgnoreLegacyAuth { get; set; }-+public bool AllowLocalOnly { get; set; }}@@ -68,7 +70,7 @@ namespace MediaBrowser.Controller.Netbool AllowLocalOnly { get; }string[] GetRoles();-+bool IgnoreLegacyAuth { get; }}}diff --git a/MediaBrowser.Controller/Net/AuthorizationInfo.cs b/MediaBrowser.Controller/Net/AuthorizationInfo.csindex 4361e253b6..735c46ef86 100644--- a/MediaBrowser.Controller/Net/AuthorizationInfo.cs+++ b/MediaBrowser.Controller/Net/AuthorizationInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using Jellyfin.Data.Entities;diff --git a/MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.cs b/MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.csindex a54f6d57b5..916dea58be 100644--- a/MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.cs+++ b/MediaBrowser.Controller/Net/BasePeriodicWebSocketListener.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Net/IHttpResultFactory.cs b/MediaBrowser.Controller/Net/IHttpResultFactory.csindex 609bd5f596..8293a87142 100644--- a/MediaBrowser.Controller/Net/IHttpResultFactory.cs+++ b/MediaBrowser.Controller/Net/IHttpResultFactory.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.IO;@@ -21,7 +23,9 @@ namespace MediaBrowser.Controller.Netobject GetResult(string content, string contentType, IDictionary<string, string> responseHeaders = null);object GetResult(IRequest requestContext, byte[] content, string contentType, IDictionary<string, string> responseHeaders = null);+object GetResult(IRequest requestContext, Stream content, string contentType, IDictionary<string, string> responseHeaders = null);+object GetResult(IRequest requestContext, string content, string contentType, IDictionary<string, string> responseHeaders = null);object GetRedirectResult(string url);diff --git a/MediaBrowser.Controller/Net/ISessionContext.cs b/MediaBrowser.Controller/Net/ISessionContext.csindex 421ac3fe24..5da748f41d 100644--- a/MediaBrowser.Controller/Net/ISessionContext.cs+++ b/MediaBrowser.Controller/Net/ISessionContext.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using Jellyfin.Data.Entities;using MediaBrowser.Controller.Session;using MediaBrowser.Model.Services;@@ -7,9 +9,11 @@ namespace MediaBrowser.Controller.Netpublic interface ISessionContext{SessionInfo GetSession(object requestContext);+User GetUser(object requestContext);SessionInfo GetSession(IRequest requestContext);+User GetUser(IRequest requestContext);}}diff --git a/MediaBrowser.Controller/Net/IWebSocketConnection.cs b/MediaBrowser.Controller/Net/IWebSocketConnection.csindex 3ef8e5f6d4..e87f3bca68 100644--- a/MediaBrowser.Controller/Net/IWebSocketConnection.cs+++ b/MediaBrowser.Controller/Net/IWebSocketConnection.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+#nullable enableusing System;diff --git a/MediaBrowser.Controller/Net/SecurityException.cs b/MediaBrowser.Controller/Net/SecurityException.csindex f0d0b45a0a..c6347133a8 100644--- a/MediaBrowser.Controller/Net/SecurityException.cs+++ b/MediaBrowser.Controller/Net/SecurityException.cs@@ -1,3 +1,5 @@+#nullable enable+using System;namespace MediaBrowser.Controller.Netdiff --git a/MediaBrowser.Controller/Net/StaticResultOptions.cs b/MediaBrowser.Controller/Net/StaticResultOptions.csindex 85772e0368..c1e9bc8453 100644--- a/MediaBrowser.Controller/Net/StaticResultOptions.cs+++ b/MediaBrowser.Controller/Net/StaticResultOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.IO;diff --git a/MediaBrowser.Controller/Notifications/INotificationManager.cs b/MediaBrowser.Controller/Notifications/INotificationManager.csindex 44defbe0b2..08d9bc12a2 100644--- a/MediaBrowser.Controller/Notifications/INotificationManager.cs+++ b/MediaBrowser.Controller/Notifications/INotificationManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Notifications/INotificationService.cs b/MediaBrowser.Controller/Notifications/INotificationService.csindex ab5eb13cd4..fa947220ad 100644--- a/MediaBrowser.Controller/Notifications/INotificationService.cs+++ b/MediaBrowser.Controller/Notifications/INotificationService.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Threading;using System.Threading.Tasks;using Jellyfin.Data.Entities;diff --git a/MediaBrowser.Controller/Notifications/INotificationTypeFactory.cs b/MediaBrowser.Controller/Notifications/INotificationTypeFactory.csindex 9f1d2841d7..52a3e120b5 100644--- a/MediaBrowser.Controller/Notifications/INotificationTypeFactory.cs+++ b/MediaBrowser.Controller/Notifications/INotificationTypeFactory.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Model.Notifications;diff --git a/MediaBrowser.Controller/Notifications/UserNotification.cs b/MediaBrowser.Controller/Notifications/UserNotification.csindex a1029589b8..d768abfe73 100644--- a/MediaBrowser.Controller/Notifications/UserNotification.cs+++ b/MediaBrowser.Controller/Notifications/UserNotification.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using Jellyfin.Data.Entities;using MediaBrowser.Model.Notifications;diff --git a/MediaBrowser.Controller/Persistence/IItemRepository.cs b/MediaBrowser.Controller/Persistence/IItemRepository.csindex 0ae1b8bbfa..ebc37bd1f3 100644--- a/MediaBrowser.Controller/Persistence/IItemRepository.cs+++ b/MediaBrowser.Controller/Persistence/IItemRepository.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;@@ -156,15 +158,23 @@ namespace MediaBrowser.Controller.Persistenceint GetCount(InternalItemsQuery query);QueryResult<(BaseItem, ItemCounts)> GetGenres(InternalItemsQuery query);+QueryResult<(BaseItem, ItemCounts)> GetMusicGenres(InternalItemsQuery query);+QueryResult<(BaseItem, ItemCounts)> GetStudios(InternalItemsQuery query);+QueryResult<(BaseItem, ItemCounts)> GetArtists(InternalItemsQuery query);+QueryResult<(BaseItem, ItemCounts)> GetAlbumArtists(InternalItemsQuery query);+QueryResult<(BaseItem, ItemCounts)> GetAllArtists(InternalItemsQuery query);List<string> GetMusicGenreNames();+List<string> GetStudioNames();+List<string> GetGenreNames();+List<string> GetAllArtistNames();}}diff --git a/MediaBrowser.Controller/Persistence/IUserDataRepository.cs b/MediaBrowser.Controller/Persistence/IUserDataRepository.csindex ba7c9fd509..81ba513cef 100644--- a/MediaBrowser.Controller/Persistence/IUserDataRepository.cs+++ b/MediaBrowser.Controller/Persistence/IUserDataRepository.cs@@ -24,9 +24,15 @@ namespace MediaBrowser.Controller.Persistence/// </summary>/// <param name="userId">The user id.</param>/// <param name="key">The key.</param>- /// <returns>Task{UserItemData}.</returns>+ /// <returns>The user data.</returns>UserItemData GetUserData(long userId, string key);+ /// <summary>+ /// Gets the user data.+ /// </summary>+ /// <param name="userId">The user id.</param>+ /// <param name="keys">The keys.</param>+ /// <returns>The user data.</returns>UserItemData GetUserData(long userId, List<string> keys);/// <summary>diff --git a/MediaBrowser.Controller/Persistence/MediaAttachmentQuery.cs b/MediaBrowser.Controller/Persistence/MediaAttachmentQuery.csindex e3b2d46650..e07e96f73e 100644--- a/MediaBrowser.Controller/Persistence/MediaAttachmentQuery.cs+++ b/MediaBrowser.Controller/Persistence/MediaAttachmentQuery.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Persistencediff --git a/MediaBrowser.Controller/Persistence/MediaStreamQuery.cs b/MediaBrowser.Controller/Persistence/MediaStreamQuery.csindex 7dc563b3ad..f9295c8fd3 100644--- a/MediaBrowser.Controller/Persistence/MediaStreamQuery.cs+++ b/MediaBrowser.Controller/Persistence/MediaStreamQuery.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Playlists/IPlaylistManager.cs b/MediaBrowser.Controller/Playlists/IPlaylistManager.csindex a3e7d4a677..fbf2c52131 100644--- a/MediaBrowser.Controller/Playlists/IPlaylistManager.cs+++ b/MediaBrowser.Controller/Playlists/IPlaylistManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Playlists/Playlist.cs b/MediaBrowser.Controller/Playlists/Playlist.csindex 0fd63770f4..216dd27098 100644--- a/MediaBrowser.Controller/Playlists/Playlist.cs+++ b/MediaBrowser.Controller/Playlists/Playlist.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Plugins/ILocalizablePlugin.cs b/MediaBrowser.Controller/Plugins/ILocalizablePlugin.csindex 5deb165f62..bf15fe0407 100644--- a/MediaBrowser.Controller/Plugins/ILocalizablePlugin.cs+++ b/MediaBrowser.Controller/Plugins/ILocalizablePlugin.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.IO;using System.Reflection;diff --git a/MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs b/MediaBrowser.Controller/Plugins/IPluginConfigurationPage.csindex 077f5ab63e..93eab42cc7 100644--- a/MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs+++ b/MediaBrowser.Controller/Plugins/IPluginConfigurationPage.cs@@ -42,6 +42,7 @@ namespace MediaBrowser.Controller.Plugins/// The plugin configuration./// </summary>PluginConfiguration,+/// <summary>/// The none./// </summary>diff --git a/MediaBrowser.Controller/Providers/AlbumInfo.cs b/MediaBrowser.Controller/Providers/AlbumInfo.csindex dbda4843f9..276bcf1252 100644--- a/MediaBrowser.Controller/Providers/AlbumInfo.cs+++ b/MediaBrowser.Controller/Providers/AlbumInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;diff --git a/MediaBrowser.Controller/Providers/ArtistInfo.cs b/MediaBrowser.Controller/Providers/ArtistInfo.csindex 08bf3982b1..adf885baa6 100644--- a/MediaBrowser.Controller/Providers/ArtistInfo.cs+++ b/MediaBrowser.Controller/Providers/ArtistInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;namespace MediaBrowser.Controller.Providersdiff --git a/MediaBrowser.Controller/Providers/BookInfo.cs b/MediaBrowser.Controller/Providers/BookInfo.csindex 03a6737c5f..cce0a25fcb 100644--- a/MediaBrowser.Controller/Providers/BookInfo.cs+++ b/MediaBrowser.Controller/Providers/BookInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public class BookInfo : ItemLookupInfodiff --git a/MediaBrowser.Controller/Providers/BoxSetInfo.cs b/MediaBrowser.Controller/Providers/BoxSetInfo.csindex d23f2b9bf3..f43ea67178 100644--- a/MediaBrowser.Controller/Providers/BoxSetInfo.cs+++ b/MediaBrowser.Controller/Providers/BoxSetInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public class BoxSetInfo : ItemLookupInfodiff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.csindex b7640c2050..f77455485a 100644--- a/MediaBrowser.Controller/Providers/DirectoryService.cs+++ b/MediaBrowser.Controller/Providers/DirectoryService.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;diff --git a/MediaBrowser.Controller/Providers/DynamicImageResponse.cs b/MediaBrowser.Controller/Providers/DynamicImageResponse.csindex 7c1371702e..006174be8c 100644--- a/MediaBrowser.Controller/Providers/DynamicImageResponse.cs+++ b/MediaBrowser.Controller/Providers/DynamicImageResponse.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.IO;using MediaBrowser.Model.Drawing;diff --git a/MediaBrowser.Controller/Providers/EpisodeInfo.cs b/MediaBrowser.Controller/Providers/EpisodeInfo.csindex 55c41ff82c..a4c8dab7ea 100644--- a/MediaBrowser.Controller/Providers/EpisodeInfo.cs+++ b/MediaBrowser.Controller/Providers/EpisodeInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;diff --git a/MediaBrowser.Controller/Providers/ICustomMetadataProvider.cs b/MediaBrowser.Controller/Providers/ICustomMetadataProvider.csindex 6b4c9feb51..32a9cbef2e 100644--- a/MediaBrowser.Controller/Providers/ICustomMetadataProvider.cs+++ b/MediaBrowser.Controller/Providers/ICustomMetadataProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Threading;using System.Threading.Tasks;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/Providers/IDirectoryService.cs b/MediaBrowser.Controller/Providers/IDirectoryService.csindex 949a17740b..f06481c7a9 100644--- a/MediaBrowser.Controller/Providers/IDirectoryService.cs+++ b/MediaBrowser.Controller/Providers/IDirectoryService.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Model.IO;diff --git a/MediaBrowser.Controller/Providers/IDynamicImageProvider.cs b/MediaBrowser.Controller/Providers/IDynamicImageProvider.csindex dec327d665..ab66462fa6 100644--- a/MediaBrowser.Controller/Providers/IDynamicImageProvider.cs+++ b/MediaBrowser.Controller/Providers/IDynamicImageProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Providers/IHasItemChangeMonitor.cs b/MediaBrowser.Controller/Providers/IHasItemChangeMonitor.csindex 68acb39105..a0e20e312e 100644--- a/MediaBrowser.Controller/Providers/IHasItemChangeMonitor.cs+++ b/MediaBrowser.Controller/Providers/IHasItemChangeMonitor.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Controller.Entities;namespace MediaBrowser.Controller.Providersdiff --git a/MediaBrowser.Controller/Providers/IHasLookupInfo.cs b/MediaBrowser.Controller/Providers/IHasLookupInfo.csindex 4c0c384423..42cb523713 100644--- a/MediaBrowser.Controller/Providers/IHasLookupInfo.cs+++ b/MediaBrowser.Controller/Providers/IHasLookupInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public interface IHasLookupInfo<out TLookupInfoType>diff --git a/MediaBrowser.Controller/Providers/IHasOrder.cs b/MediaBrowser.Controller/Providers/IHasOrder.csindex a3db612256..9fde0e6958 100644--- a/MediaBrowser.Controller/Providers/IHasOrder.cs+++ b/MediaBrowser.Controller/Providers/IHasOrder.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public interface IHasOrderdiff --git a/MediaBrowser.Controller/Providers/ILocalImageProvider.cs b/MediaBrowser.Controller/Providers/ILocalImageProvider.csindex 463c81376d..c129eddb3a 100644--- a/MediaBrowser.Controller/Providers/ILocalImageProvider.cs+++ b/MediaBrowser.Controller/Providers/ILocalImageProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/Providers/ILocalMetadataProvider.cs b/MediaBrowser.Controller/Providers/ILocalMetadataProvider.csindex 44fb1b394f..e771c881df 100644--- a/MediaBrowser.Controller/Providers/ILocalMetadataProvider.cs+++ b/MediaBrowser.Controller/Providers/ILocalMetadataProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Threading;using System.Threading.Tasks;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/Providers/IMetadataProvider.cs b/MediaBrowser.Controller/Providers/IMetadataProvider.csindex 62b16dadd7..1a87e0625d 100644--- a/MediaBrowser.Controller/Providers/IMetadataProvider.cs+++ b/MediaBrowser.Controller/Providers/IMetadataProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Controller.Entities;namespace MediaBrowser.Controller.Providersdiff --git a/MediaBrowser.Controller/Providers/IMetadataService.cs b/MediaBrowser.Controller/Providers/IMetadataService.csindex 21204e6d31..5f3d4274ef 100644--- a/MediaBrowser.Controller/Providers/IMetadataService.cs+++ b/MediaBrowser.Controller/Providers/IMetadataService.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Providers/IPreRefreshProvider.cs b/MediaBrowser.Controller/Providers/IPreRefreshProvider.csindex 28da27ae77..6d98af33e4 100644--- a/MediaBrowser.Controller/Providers/IPreRefreshProvider.cs+++ b/MediaBrowser.Controller/Providers/IPreRefreshProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public interface IPreRefreshProvider : ICustomMetadataProviderdiff --git a/MediaBrowser.Controller/Providers/IProviderManager.cs b/MediaBrowser.Controller/Providers/IProviderManager.csindex c77349d010..e470d77b60 100644--- a/MediaBrowser.Controller/Providers/IProviderManager.cs+++ b/MediaBrowser.Controller/Providers/IProviderManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.IO;diff --git a/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs b/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.csindex c143b15cdb..f146decb60 100644--- a/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs+++ b/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Providers/IRemoteSearchProvider.cs b/MediaBrowser.Controller/Providers/IRemoteSearchProvider.csindex 17ad9e4a3a..9592baa7c1 100644--- a/MediaBrowser.Controller/Providers/IRemoteSearchProvider.cs+++ b/MediaBrowser.Controller/Providers/IRemoteSearchProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Net.Http;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Providers/ImageRefreshOptions.cs b/MediaBrowser.Controller/Providers/ImageRefreshOptions.csindex 3f8c409f5c..9fc379f045 100644--- a/MediaBrowser.Controller/Providers/ImageRefreshOptions.cs+++ b/MediaBrowser.Controller/Providers/ImageRefreshOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Linq;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Providers/ItemInfo.cs b/MediaBrowser.Controller/Providers/ItemInfo.csindex d61153dfa6..b50def043f 100644--- a/MediaBrowser.Controller/Providers/ItemInfo.cs+++ b/MediaBrowser.Controller/Providers/ItemInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Controller.Entities;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Providers/ItemLookupInfo.cs b/MediaBrowser.Controller/Providers/ItemLookupInfo.csindex 4707b0c7fc..49974c2a37 100644--- a/MediaBrowser.Controller/Providers/ItemLookupInfo.cs+++ b/MediaBrowser.Controller/Providers/ItemLookupInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Model.Entities;diff --git a/MediaBrowser.Controller/Providers/LocalImageInfo.cs b/MediaBrowser.Controller/Providers/LocalImageInfo.csindex 1842810255..41801862fd 100644--- a/MediaBrowser.Controller/Providers/LocalImageInfo.cs+++ b/MediaBrowser.Controller/Providers/LocalImageInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Model.Entities;using MediaBrowser.Model.IO;diff --git a/MediaBrowser.Controller/Providers/MetadataRefreshMode.cs b/MediaBrowser.Controller/Providers/MetadataRefreshMode.csindex 6d49b55104..920e3da5b0 100644--- a/MediaBrowser.Controller/Providers/MetadataRefreshMode.cs+++ b/MediaBrowser.Controller/Providers/MetadataRefreshMode.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public enum MetadataRefreshModediff --git a/MediaBrowser.Controller/Providers/MetadataRefreshOptions.cs b/MediaBrowser.Controller/Providers/MetadataRefreshOptions.csindex 0a473b80ca..b92b837012 100644--- a/MediaBrowser.Controller/Providers/MetadataRefreshOptions.cs+++ b/MediaBrowser.Controller/Providers/MetadataRefreshOptions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Linq;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/Providers/MetadataResult.cs b/MediaBrowser.Controller/Providers/MetadataResult.csindex 270ea24449..1c695cafa0 100644--- a/MediaBrowser.Controller/Providers/MetadataResult.cs+++ b/MediaBrowser.Controller/Providers/MetadataResult.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Globalization;diff --git a/MediaBrowser.Controller/Providers/MovieInfo.cs b/MediaBrowser.Controller/Providers/MovieInfo.csindex 5b2c3ed03b..20e6b697ad 100644--- a/MediaBrowser.Controller/Providers/MovieInfo.cs+++ b/MediaBrowser.Controller/Providers/MovieInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public class MovieInfo : ItemLookupInfodiff --git a/MediaBrowser.Controller/Providers/MusicVideoInfo.cs b/MediaBrowser.Controller/Providers/MusicVideoInfo.csindex 9835351fc8..0b927f6eb0 100644--- a/MediaBrowser.Controller/Providers/MusicVideoInfo.cs+++ b/MediaBrowser.Controller/Providers/MusicVideoInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;namespace MediaBrowser.Controller.Providersdiff --git a/MediaBrowser.Controller/Providers/PersonLookupInfo.cs b/MediaBrowser.Controller/Providers/PersonLookupInfo.csindex a6218c039a..11cb71f902 100644--- a/MediaBrowser.Controller/Providers/PersonLookupInfo.cs+++ b/MediaBrowser.Controller/Providers/PersonLookupInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public class PersonLookupInfo : ItemLookupInfodiff --git a/MediaBrowser.Controller/Providers/RemoteSearchQuery.cs b/MediaBrowser.Controller/Providers/RemoteSearchQuery.csindex a2ac6c9ae0..9653bc1c4a 100644--- a/MediaBrowser.Controller/Providers/RemoteSearchQuery.cs+++ b/MediaBrowser.Controller/Providers/RemoteSearchQuery.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Providersdiff --git a/MediaBrowser.Controller/Providers/SeasonInfo.cs b/MediaBrowser.Controller/Providers/SeasonInfo.csindex dd2ef9ad73..2a4c1f03c7 100644--- a/MediaBrowser.Controller/Providers/SeasonInfo.cs+++ b/MediaBrowser.Controller/Providers/SeasonInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;diff --git a/MediaBrowser.Controller/Providers/SeriesInfo.cs b/MediaBrowser.Controller/Providers/SeriesInfo.csindex 6c206e0314..976fa175ad 100644--- a/MediaBrowser.Controller/Providers/SeriesInfo.cs+++ b/MediaBrowser.Controller/Providers/SeriesInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public class SeriesInfo : ItemLookupInfodiff --git a/MediaBrowser.Controller/Providers/SongInfo.cs b/MediaBrowser.Controller/Providers/SongInfo.csindex 50615b0bd3..58f76dca91 100644--- a/MediaBrowser.Controller/Providers/SongInfo.cs+++ b/MediaBrowser.Controller/Providers/SongInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;diff --git a/MediaBrowser.Controller/Providers/TrailerInfo.cs b/MediaBrowser.Controller/Providers/TrailerInfo.csindex 13f07562d4..630850f9db 100644--- a/MediaBrowser.Controller/Providers/TrailerInfo.cs+++ b/MediaBrowser.Controller/Providers/TrailerInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+namespace MediaBrowser.Controller.Providers{public class TrailerInfo : ItemLookupInfodiff --git a/MediaBrowser.Controller/Resolvers/IItemResolver.cs b/MediaBrowser.Controller/Resolvers/IItemResolver.csindex a73937b3e3..b99c468435 100644--- a/MediaBrowser.Controller/Resolvers/IItemResolver.cs+++ b/MediaBrowser.Controller/Resolvers/IItemResolver.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;diff --git a/MediaBrowser.Controller/Resolvers/ResolverPriority.cs b/MediaBrowser.Controller/Resolvers/ResolverPriority.csindex 1911e5c1dd..ac73a5ea89 100644--- a/MediaBrowser.Controller/Resolvers/ResolverPriority.cs+++ b/MediaBrowser.Controller/Resolvers/ResolverPriority.cs@@ -9,15 +9,22 @@ namespace MediaBrowser.Controller.Resolvers/// The first./// </summary>First = 1,+/// <summary>/// The second./// </summary>Second = 2,+/// <summary>/// The third./// </summary>Third = 3,++ /// <summary>+ /// The Fourth.+ /// </summary>Fourth = 4,+/// <summary>/// The last./// </summary>diff --git a/MediaBrowser.Controller/Security/AuthenticationInfo.cs b/MediaBrowser.Controller/Security/AuthenticationInfo.csindex 1d0b959b73..efac9273ec 100644--- a/MediaBrowser.Controller/Security/AuthenticationInfo.cs+++ b/MediaBrowser.Controller/Security/AuthenticationInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Securitydiff --git a/MediaBrowser.Controller/Security/AuthenticationInfoQuery.cs b/MediaBrowser.Controller/Security/AuthenticationInfoQuery.csindex 2bd17eb263..c5f3da0b1b 100644--- a/MediaBrowser.Controller/Security/AuthenticationInfoQuery.cs+++ b/MediaBrowser.Controller/Security/AuthenticationInfoQuery.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Securitydiff --git a/MediaBrowser.Controller/Security/IAuthenticationRepository.cs b/MediaBrowser.Controller/Security/IAuthenticationRepository.csindex 6a9625613d..883b74165c 100644--- a/MediaBrowser.Controller/Security/IAuthenticationRepository.cs+++ b/MediaBrowser.Controller/Security/IAuthenticationRepository.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Model.Devices;using MediaBrowser.Model.Querying;@@ -29,6 +31,7 @@ namespace MediaBrowser.Controller.Securityvoid Delete(AuthenticationInfo info);DeviceOptions GetDeviceOptions(string deviceId);+void UpdateDeviceOptions(string deviceId, DeviceOptions options);}}diff --git a/MediaBrowser.Controller/Session/AuthenticationRequest.cs b/MediaBrowser.Controller/Session/AuthenticationRequest.csindex 685ca3bddc..cc321fd22e 100644--- a/MediaBrowser.Controller/Session/AuthenticationRequest.cs+++ b/MediaBrowser.Controller/Session/AuthenticationRequest.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Sessiondiff --git a/MediaBrowser.Controller/Session/ISessionController.cs b/MediaBrowser.Controller/Session/ISessionController.csindex 04450085bf..22d6e2a04e 100644--- a/MediaBrowser.Controller/Session/ISessionController.cs+++ b/MediaBrowser.Controller/Session/ISessionController.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Session/ISessionManager.cs b/MediaBrowser.Controller/Session/ISessionManager.csindex e54f210506..1a1e200fac 100644--- a/MediaBrowser.Controller/Session/ISessionManager.cs+++ b/MediaBrowser.Controller/Session/ISessionManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;diff --git a/MediaBrowser.Controller/Session/SessionEventArgs.cs b/MediaBrowser.Controller/Session/SessionEventArgs.csindex 08baaf6476..097e32eaec 100644--- a/MediaBrowser.Controller/Session/SessionEventArgs.cs+++ b/MediaBrowser.Controller/Session/SessionEventArgs.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;namespace MediaBrowser.Controller.Sessiondiff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.csindex 4b088998cd..054fd33d9d 100644--- a/MediaBrowser.Controller/Session/SessionInfo.cs+++ b/MediaBrowser.Controller/Session/SessionInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Linq;using System.Text.Json.Serialization;diff --git a/MediaBrowser.Controller/Sorting/AlphanumComparator.cs b/MediaBrowser.Controller/Sorting/AlphanumComparator.csindex de7f72d1c2..70cb9eebe0 100644--- a/MediaBrowser.Controller/Sorting/AlphanumComparator.cs+++ b/MediaBrowser.Controller/Sorting/AlphanumComparator.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+#nullable enableusing System;@@ -127,7 +129,7 @@ namespace MediaBrowser.Controller.Sorting}/// <inheritdoc />- public int Compare(string x, string y)+ public int Compare(string? x, string? y){return CompareValues(x, y);}diff --git a/MediaBrowser.Controller/Sorting/SortExtensions.cs b/MediaBrowser.Controller/Sorting/SortExtensions.csindex 2a68f46789..88467814cd 100644--- a/MediaBrowser.Controller/Sorting/SortExtensions.cs+++ b/MediaBrowser.Controller/Sorting/SortExtensions.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Linq;@@ -7,6 +9,7 @@ namespace MediaBrowser.Controller.Sortingpublic static class SortExtensions{private static readonly AlphanumComparator _comparer = new AlphanumComparator();+public static IEnumerable<T> OrderByString<T>(this IEnumerable<T> list, Func<T, string> getName){return list.OrderBy(getName, _comparer);diff --git a/MediaBrowser.Controller/Subtitles/ISubtitleManager.cs b/MediaBrowser.Controller/Subtitles/ISubtitleManager.csindex 39538aacd7..f43d523a63 100644--- a/MediaBrowser.Controller/Subtitles/ISubtitleManager.cs+++ b/MediaBrowser.Controller/Subtitles/ISubtitleManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using System.Threading;diff --git a/MediaBrowser.Controller/Subtitles/ISubtitleProvider.cs b/MediaBrowser.Controller/Subtitles/ISubtitleProvider.csindex 8ffd7c5305..a633262de9 100644--- a/MediaBrowser.Controller/Subtitles/ISubtitleProvider.cs+++ b/MediaBrowser.Controller/Subtitles/ISubtitleProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;diff --git a/MediaBrowser.Controller/Subtitles/SubtitleDownloadEventArgs.cs b/MediaBrowser.Controller/Subtitles/SubtitleDownloadEventArgs.csindex 5703aea17c..b1d74517ea 100644--- a/MediaBrowser.Controller/Subtitles/SubtitleDownloadEventArgs.cs+++ b/MediaBrowser.Controller/Subtitles/SubtitleDownloadEventArgs.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using MediaBrowser.Controller.Entities;diff --git a/MediaBrowser.Controller/Subtitles/SubtitleResponse.cs b/MediaBrowser.Controller/Subtitles/SubtitleResponse.csindex ad6025927c..a86b057783 100644--- a/MediaBrowser.Controller/Subtitles/SubtitleResponse.cs+++ b/MediaBrowser.Controller/Subtitles/SubtitleResponse.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.IO;namespace MediaBrowser.Controller.Subtitlesdiff --git a/MediaBrowser.Controller/Subtitles/SubtitleSearchRequest.cs b/MediaBrowser.Controller/Subtitles/SubtitleSearchRequest.csindex a202723b99..7d3c20e8f1 100644--- a/MediaBrowser.Controller/Subtitles/SubtitleSearchRequest.cs+++ b/MediaBrowser.Controller/Subtitles/SubtitleSearchRequest.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.Collections.Generic;using MediaBrowser.Controller.Providers;diff --git a/MediaBrowser.Controller/Sync/IHasDynamicAccess.cs b/MediaBrowser.Controller/Sync/IHasDynamicAccess.csindex d6bac23bec..e7395b136d 100644--- a/MediaBrowser.Controller/Sync/IHasDynamicAccess.cs+++ b/MediaBrowser.Controller/Sync/IHasDynamicAccess.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Threading;using System.Threading.Tasks;using MediaBrowser.Model.Sync;diff --git a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs b/MediaBrowser.Controller/Sync/IServerSyncProvider.csindex 8b2d5d7797..c97fd70442 100644--- a/MediaBrowser.Controller/Sync/IServerSyncProvider.cs+++ b/MediaBrowser.Controller/Sync/IServerSyncProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System;using System.IO;using System.Threading;diff --git a/MediaBrowser.Controller/Sync/ISyncProvider.cs b/MediaBrowser.Controller/Sync/ISyncProvider.csindex 56f6f37299..950cc73e85 100644--- a/MediaBrowser.Controller/Sync/ISyncProvider.cs+++ b/MediaBrowser.Controller/Sync/ISyncProvider.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Model.Sync;diff --git a/MediaBrowser.Controller/Sync/SyncedFileInfo.cs b/MediaBrowser.Controller/Sync/SyncedFileInfo.csindex 687a46d78f..a626738fb2 100644--- a/MediaBrowser.Controller/Sync/SyncedFileInfo.cs+++ b/MediaBrowser.Controller/Sync/SyncedFileInfo.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using System.Collections.Generic;using MediaBrowser.Model.MediaInfo;@@ -5,6 +7,11 @@ namespace MediaBrowser.Controller.Sync{public class SyncedFileInfo{+ public SyncedFileInfo()+ {+ RequiredHttpHeaders = new Dictionary<string, string>();+ }+/// <summary>/// Gets or sets the path./// </summary>@@ -12,25 +19,23 @@ namespace MediaBrowser.Controller.Syncpublic string Path { get; set; }public string[] PathParts { get; set; }+/// <summary>/// Gets or sets the protocol./// </summary>/// <value>The protocol.</value>public MediaProtocol Protocol { get; set; }+/// <summary>/// Gets or sets the required HTTP headers./// </summary>/// <value>The required HTTP headers.</value>public Dictionary<string, string> RequiredHttpHeaders { get; set; }+/// <summary>/// Gets or sets the identifier./// </summary>/// <value>The identifier.</value>public string Id { get; set; }-- public SyncedFileInfo()- {- RequiredHttpHeaders = new Dictionary<string, string>();- }}}diff --git a/MediaBrowser.Controller/SyncPlay/ISyncPlayController.cs b/MediaBrowser.Controller/SyncPlay/ISyncPlayController.csindex 45c5438061..60d17fe367 100644--- a/MediaBrowser.Controller/SyncPlay/ISyncPlayController.cs+++ b/MediaBrowser.Controller/SyncPlay/ISyncPlayController.cs@@ -64,4 +64,4 @@ namespace MediaBrowser.Controller.SyncPlay/// <value>The group info for the clients.</value>GroupInfoView GetInfo();}-}\ No newline at end of file+}diff --git a/MediaBrowser.Controller/TV/ITVSeriesManager.cs b/MediaBrowser.Controller/TV/ITVSeriesManager.csindex 09a0f6fea9..291dea04ef 100644--- a/MediaBrowser.Controller/TV/ITVSeriesManager.cs+++ b/MediaBrowser.Controller/TV/ITVSeriesManager.cs@@ -1,3 +1,5 @@+#pragma warning disable CS1591+using MediaBrowser.Controller.Dto;using MediaBrowser.Controller.Entities;using MediaBrowser.Model.Querying;