The Free Software Media System - Server Backend & API
fix SA1119
telansafe09612e82a
diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.csindex ad31b3e1ea..7b7da703be 100644--- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs+++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs@@ -426,7 +426,7 @@ namespace Emby.Server.Implementations.HttpServer/// </summary>private object GetCachedResult(IRequest requestContext, IDictionary<string, string> responseHeaders, StaticResultOptions options){- bool noCache = (requestContext.Headers[HeaderNames.CacheControl].ToString()).IndexOf("no-cache", StringComparison.OrdinalIgnoreCase) != -1;+ bool noCache = requestContext.Headers[HeaderNames.CacheControl].ToString().IndexOf("no-cache", StringComparison.OrdinalIgnoreCase) != -1;AddCachingHeaders(responseHeaders, options.CacheDuration, noCache, options.DateLastModified);if (!noCache)diff --git a/Emby.Server.Implementations/HttpServer/ResponseFilter.cs b/Emby.Server.Implementations/HttpServer/ResponseFilter.csindex 3ab5dbc160..a8cd2ac8f2 100644--- a/Emby.Server.Implementations/HttpServer/ResponseFilter.cs+++ b/Emby.Server.Implementations/HttpServer/ResponseFilter.cs@@ -41,11 +41,11 @@ namespace Emby.Server.Implementations.HttpServerres.Headers.Add(key, value);}// Try to prevent compatibility view- res.Headers["Access-Control-Allow-Headers"] = ("Accept, Accept-Language, Authorization, Cache-Control, " ++ res.Headers["Access-Control-Allow-Headers"] = "Accept, Accept-Language, Authorization, Cache-Control, " +"Content-Disposition, Content-Encoding, Content-Language, Content-Length, Content-MD5, Content-Range, " +"Content-Type, Cookie, Date, Host, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, " +"Origin, OriginToken, Pragma, Range, Slug, Transfer-Encoding, Want-Digest, X-MediaBrowser-Token, " +- "X-Emby-Authorization");+ "X-Emby-Authorization";if (dto is Exception exception){diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.csindex dff113a2a7..db9d240281 100644--- a/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunHost.cs@@ -691,7 +691,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomerun{var model = ModelNumber ?? string.Empty;- if ((model.IndexOf("hdtc", StringComparison.OrdinalIgnoreCase) != -1))+ if (model.IndexOf("hdtc", StringComparison.OrdinalIgnoreCase) != -1){return true;}diff --git a/Emby.Server.Implementations/Security/AuthenticationRepository.cs b/Emby.Server.Implementations/Security/AuthenticationRepository.csindex 9c1be9a1ab..4dfadc7032 100644--- a/Emby.Server.Implementations/Security/AuthenticationRepository.cs+++ b/Emby.Server.Implementations/Security/AuthenticationRepository.cs@@ -98,7 +98,7 @@ namespace Emby.Server.Implementations.Securitystatement.TryBind("@AppName", info.AppName);statement.TryBind("@AppVersion", info.AppVersion);statement.TryBind("@DeviceName", info.DeviceName);- statement.TryBind("@UserId", (info.UserId.Equals(Guid.Empty) ? null : info.UserId.ToString("N", CultureInfo.InvariantCulture)));+ statement.TryBind("@UserId", info.UserId.Equals(Guid.Empty) ? null : info.UserId.ToString("N", CultureInfo.InvariantCulture));statement.TryBind("@UserName", info.UserName);statement.TryBind("@IsActive", true);statement.TryBind("@DateCreated", info.DateCreated.ToDateTimeParamValue());@@ -131,7 +131,7 @@ namespace Emby.Server.Implementations.Securitystatement.TryBind("@AppName", info.AppName);statement.TryBind("@AppVersion", info.AppVersion);statement.TryBind("@DeviceName", info.DeviceName);- statement.TryBind("@UserId", (info.UserId.Equals(Guid.Empty) ? null : info.UserId.ToString("N", CultureInfo.InvariantCulture)));+ statement.TryBind("@UserId", info.UserId.Equals(Guid.Empty) ? null : info.UserId.ToString("N", CultureInfo.InvariantCulture));statement.TryBind("@UserName", info.UserName);statement.TryBind("@DateCreated", info.DateCreated.ToDateTimeParamValue());statement.TryBind("@DateLastActivity", info.DateLastActivity.ToDateTimeParamValue());diff --git a/Emby.Server.Implementations/Services/ServicePath.cs b/Emby.Server.Implementations/Services/ServicePath.csindex 3b7ffaf2cd..14ae126a33 100644--- a/Emby.Server.Implementations/Services/ServicePath.cs+++ b/Emby.Server.Implementations/Services/ServicePath.cs@@ -302,9 +302,9 @@ namespace Emby.Server.Implementations.Services}// Routes with least wildcard matches get the highest score- var score = Math.Max((100 - wildcardMatchCount), 1) * 1000+ var score = Math.Max(100 - wildcardMatchCount, 1) * 1000// Routes with less variable (and more literal) matches- + Math.Max((10 - VariableArgsCount), 1) * 100;+ + Math.Max(10 - VariableArgsCount, 1) * 100;// Exact verb match is better than ANYif (Verbs.Length == 1 && string.Equals(httpMethod, Verbs[0], StringComparison.OrdinalIgnoreCase))diff --git a/Jellyfin.Data/Entities/Artwork.cs b/Jellyfin.Data/Entities/Artwork.csindex 852d742a58..df071e477b 100644--- a/Jellyfin.Data/Entities/Artwork.cs+++ b/Jellyfin.Data/Entities/Artwork.cs@@ -87,7 +87,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -126,7 +126,7 @@ namespace Jellyfin.Data.Entities{string value = _Path;GetPath(ref value);- return (_Path = value);+ return _Path = value;}set@@ -163,7 +163,7 @@ namespace Jellyfin.Data.Entities{Enums.ArtKind value = _Kind;GetKind(ref value);- return (_Kind = value);+ return _Kind = value;}setdiff --git a/Jellyfin.Data/Entities/BookMetadata.cs b/Jellyfin.Data/Entities/BookMetadata.csindex 47578dc46b..914eda0642 100644--- a/Jellyfin.Data/Entities/BookMetadata.cs+++ b/Jellyfin.Data/Entities/BookMetadata.cs@@ -82,7 +82,7 @@ namespace Jellyfin.Data.Entities{long? value = _ISBN;GetISBN(ref value);- return (_ISBN = value);+ return _ISBN = value;}setdiff --git a/Jellyfin.Data/Entities/Chapter.cs b/Jellyfin.Data/Entities/Chapter.csindex d5b2b39ce7..77685add6e 100644--- a/Jellyfin.Data/Entities/Chapter.cs+++ b/Jellyfin.Data/Entities/Chapter.cs@@ -84,7 +84,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -122,7 +122,7 @@ namespace Jellyfin.Data.Entities{string value = _Name;GetName(ref value);- return (_Name = value);+ return _Name = value;}set@@ -163,7 +163,7 @@ namespace Jellyfin.Data.Entities{string value = _Language;GetLanguage(ref value);- return (_Language = value);+ return _Language = value;}set@@ -200,7 +200,7 @@ namespace Jellyfin.Data.Entities{long value = _TimeStart;GetTimeStart(ref value);- return (_TimeStart = value);+ return _TimeStart = value;}set@@ -233,7 +233,7 @@ namespace Jellyfin.Data.Entities{long? value = _TimeEnd;GetTimeEnd(ref value);- return (_TimeEnd = value);+ return _TimeEnd = value;}setdiff --git a/Jellyfin.Data/Entities/Collection.cs b/Jellyfin.Data/Entities/Collection.csindex d2f441d030..01836d8937 100644--- a/Jellyfin.Data/Entities/Collection.cs+++ b/Jellyfin.Data/Entities/Collection.cs@@ -47,7 +47,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -85,7 +85,7 @@ namespace Jellyfin.Data.Entities{string value = _Name;GetName(ref value);- return (_Name = value);+ return _Name = value;}setdiff --git a/Jellyfin.Data/Entities/CollectionItem.cs b/Jellyfin.Data/Entities/CollectionItem.csindex 7cfdbbe167..08b0e99f41 100644--- a/Jellyfin.Data/Entities/CollectionItem.cs+++ b/Jellyfin.Data/Entities/CollectionItem.cs@@ -91,7 +91,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected setdiff --git a/Jellyfin.Data/Entities/Company.cs b/Jellyfin.Data/Entities/Company.csindex 908e41f3de..2ac7bcfe5f 100644--- a/Jellyfin.Data/Entities/Company.cs+++ b/Jellyfin.Data/Entities/Company.cs@@ -99,7 +99,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected setdiff --git a/Jellyfin.Data/Entities/CompanyMetadata.cs b/Jellyfin.Data/Entities/CompanyMetadata.csindex 240cccbff5..695c7f0965 100644--- a/Jellyfin.Data/Entities/CompanyMetadata.cs+++ b/Jellyfin.Data/Entities/CompanyMetadata.cs@@ -83,7 +83,7 @@ namespace Jellyfin.Data.Entities{string value = _Description;GetDescription(ref value);- return (_Description = value);+ return _Description = value;}set@@ -121,7 +121,7 @@ namespace Jellyfin.Data.Entities{string value = _Headquarters;GetHeadquarters(ref value);- return (_Headquarters = value);+ return _Headquarters = value;}set@@ -159,7 +159,7 @@ namespace Jellyfin.Data.Entities{string value = _Country;GetCountry(ref value);- return (_Country = value);+ return _Country = value;}set@@ -197,7 +197,7 @@ namespace Jellyfin.Data.Entities{string value = _Homepage;GetHomepage(ref value);- return (_Homepage = value);+ return _Homepage = value;}setdiff --git a/Jellyfin.Data/Entities/Episode.cs b/Jellyfin.Data/Entities/Episode.csindex 405c815cd0..69106ab79d 100644--- a/Jellyfin.Data/Entities/Episode.cs+++ b/Jellyfin.Data/Entities/Episode.cs@@ -84,7 +84,7 @@ namespace Jellyfin.Data.Entities{int? value = _EpisodeNumber;GetEpisodeNumber(ref value);- return (_EpisodeNumber = value);+ return _EpisodeNumber = value;}setdiff --git a/Jellyfin.Data/Entities/EpisodeMetadata.cs b/Jellyfin.Data/Entities/EpisodeMetadata.csindex 4999842aa2..da5ea43ccd 100644--- a/Jellyfin.Data/Entities/EpisodeMetadata.cs+++ b/Jellyfin.Data/Entities/EpisodeMetadata.cs@@ -83,7 +83,7 @@ namespace Jellyfin.Data.Entities{string value = _Outline;GetOutline(ref value);- return (_Outline = value);+ return _Outline = value;}set@@ -121,7 +121,7 @@ namespace Jellyfin.Data.Entities{string value = _Plot;GetPlot(ref value);- return (_Plot = value);+ return _Plot = value;}set@@ -159,7 +159,7 @@ namespace Jellyfin.Data.Entities{string value = _Tagline;GetTagline(ref value);- return (_Tagline = value);+ return _Tagline = value;}setdiff --git a/Jellyfin.Data/Entities/Genre.cs b/Jellyfin.Data/Entities/Genre.csindex 0f6f681a44..9b2264921c 100644--- a/Jellyfin.Data/Entities/Genre.cs+++ b/Jellyfin.Data/Entities/Genre.cs@@ -80,7 +80,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -119,7 +119,7 @@ namespace Jellyfin.Data.Entities{string value = _Name;GetName(ref value);- return (_Name = value);+ return _Name = value;}setdiff --git a/Jellyfin.Data/Entities/Library.cs b/Jellyfin.Data/Entities/Library.csindex a091ece03f..ff94b93f04 100644--- a/Jellyfin.Data/Entities/Library.cs+++ b/Jellyfin.Data/Entities/Library.cs@@ -75,7 +75,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -114,7 +114,7 @@ namespace Jellyfin.Data.Entities{string value = _Name;GetName(ref value);- return (_Name = value);+ return _Name = value;}setdiff --git a/Jellyfin.Data/Entities/LibraryItem.cs b/Jellyfin.Data/Entities/LibraryItem.csindex d29d6250e5..f41753560c 100644--- a/Jellyfin.Data/Entities/LibraryItem.cs+++ b/Jellyfin.Data/Entities/LibraryItem.cs@@ -57,7 +57,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -95,7 +95,7 @@ namespace Jellyfin.Data.Entities{Guid value = _UrlId;GetUrlId(ref value);- return (_UrlId = value);+ return _UrlId = value;}set@@ -132,7 +132,7 @@ namespace Jellyfin.Data.Entities{DateTime value = _DateAdded;GetDateAdded(ref value);- return (_DateAdded = value);+ return _DateAdded = value;}internal setdiff --git a/Jellyfin.Data/Entities/LibraryRoot.cs b/Jellyfin.Data/Entities/LibraryRoot.csindex d9a4f62e50..16fbc92f6e 100644--- a/Jellyfin.Data/Entities/LibraryRoot.cs+++ b/Jellyfin.Data/Entities/LibraryRoot.cs@@ -75,7 +75,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -115,7 +115,7 @@ namespace Jellyfin.Data.Entities{string value = _Path;GetPath(ref value);- return (_Path = value);+ return _Path = value;}set@@ -154,7 +154,7 @@ namespace Jellyfin.Data.Entities{string value = _NetworkPath;GetNetworkPath(ref value);- return (_NetworkPath = value);+ return _NetworkPath = value;}setdiff --git a/Jellyfin.Data/Entities/MediaFile.cs b/Jellyfin.Data/Entities/MediaFile.csindex 6e6602bfae..8201eed526 100644--- a/Jellyfin.Data/Entities/MediaFile.cs+++ b/Jellyfin.Data/Entities/MediaFile.cs@@ -88,7 +88,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -128,7 +128,7 @@ namespace Jellyfin.Data.Entities{string value = _Path;GetPath(ref value);- return (_Path = value);+ return _Path = value;}set@@ -165,7 +165,7 @@ namespace Jellyfin.Data.Entities{Enums.MediaFileKind value = _Kind;GetKind(ref value);- return (_Kind = value);+ return _Kind = value;}setdiff --git a/Jellyfin.Data/Entities/MediaFileStream.cs b/Jellyfin.Data/Entities/MediaFileStream.csindex 823988d6c9..c018c0cbf9 100644--- a/Jellyfin.Data/Entities/MediaFileStream.cs+++ b/Jellyfin.Data/Entities/MediaFileStream.cs@@ -79,7 +79,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -116,7 +116,7 @@ namespace Jellyfin.Data.Entities{int value = _StreamNumber;GetStreamNumber(ref value);- return (_StreamNumber = value);+ return _StreamNumber = value;}setdiff --git a/Jellyfin.Data/Entities/Metadata.cs b/Jellyfin.Data/Entities/Metadata.csindex a6ca61709a..146c70a10d 100644--- a/Jellyfin.Data/Entities/Metadata.cs+++ b/Jellyfin.Data/Entities/Metadata.cs@@ -74,7 +74,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -114,7 +114,7 @@ namespace Jellyfin.Data.Entities{string value = _Title;GetTitle(ref value);- return (_Title = value);+ return _Title = value;}set@@ -152,7 +152,7 @@ namespace Jellyfin.Data.Entities{string value = _OriginalTitle;GetOriginalTitle(ref value);- return (_OriginalTitle = value);+ return _OriginalTitle = value;}set@@ -190,7 +190,7 @@ namespace Jellyfin.Data.Entities{string value = _SortTitle;GetSortTitle(ref value);- return (_SortTitle = value);+ return _SortTitle = value;}set@@ -231,7 +231,7 @@ namespace Jellyfin.Data.Entities{string value = _Language;GetLanguage(ref value);- return (_Language = value);+ return _Language = value;}set@@ -264,7 +264,7 @@ namespace Jellyfin.Data.Entities{DateTimeOffset? value = _ReleaseDate;GetReleaseDate(ref value);- return (_ReleaseDate = value);+ return _ReleaseDate = value;}set@@ -301,7 +301,7 @@ namespace Jellyfin.Data.Entities{DateTime value = _DateAdded;GetDateAdded(ref value);- return (_DateAdded = value);+ return _DateAdded = value;}internal set@@ -338,7 +338,7 @@ namespace Jellyfin.Data.Entities{DateTime value = _DateModified;GetDateModified(ref value);- return (_DateModified = value);+ return _DateModified = value;}internal setdiff --git a/Jellyfin.Data/Entities/MetadataProvider.cs b/Jellyfin.Data/Entities/MetadataProvider.csindex 8c6c4000a0..ae22ccfeb1 100644--- a/Jellyfin.Data/Entities/MetadataProvider.cs+++ b/Jellyfin.Data/Entities/MetadataProvider.cs@@ -75,7 +75,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -114,7 +114,7 @@ namespace Jellyfin.Data.Entities{string value = _Name;GetName(ref value);- return (_Name = value);+ return _Name = value;}setdiff --git a/Jellyfin.Data/Entities/MetadataProviderId.cs b/Jellyfin.Data/Entities/MetadataProviderId.csindex 67ffc4f0cd..30683ced3b 100644--- a/Jellyfin.Data/Entities/MetadataProviderId.cs+++ b/Jellyfin.Data/Entities/MetadataProviderId.cs@@ -101,7 +101,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -140,7 +140,7 @@ namespace Jellyfin.Data.Entities{string value = _ProviderId;GetProviderId(ref value);- return (_ProviderId = value);+ return _ProviderId = value;}setdiff --git a/Jellyfin.Data/Entities/MovieMetadata.cs b/Jellyfin.Data/Entities/MovieMetadata.csindex cb722c015f..48584dd13c 100644--- a/Jellyfin.Data/Entities/MovieMetadata.cs+++ b/Jellyfin.Data/Entities/MovieMetadata.cs@@ -88,7 +88,7 @@ namespace Jellyfin.Data.Entities{string value = _Outline;GetOutline(ref value);- return (_Outline = value);+ return _Outline = value;}set@@ -126,7 +126,7 @@ namespace Jellyfin.Data.Entities{string value = _Plot;GetPlot(ref value);- return (_Plot = value);+ return _Plot = value;}set@@ -164,7 +164,7 @@ namespace Jellyfin.Data.Entities{string value = _Tagline;GetTagline(ref value);- return (_Tagline = value);+ return _Tagline = value;}set@@ -202,7 +202,7 @@ namespace Jellyfin.Data.Entities{string value = _Country;GetCountry(ref value);- return (_Country = value);+ return _Country = value;}setdiff --git a/Jellyfin.Data/Entities/MusicAlbumMetadata.cs b/Jellyfin.Data/Entities/MusicAlbumMetadata.csindex 4b9f9cb626..5847101ca3 100644--- a/Jellyfin.Data/Entities/MusicAlbumMetadata.cs+++ b/Jellyfin.Data/Entities/MusicAlbumMetadata.cs@@ -88,7 +88,7 @@ namespace Jellyfin.Data.Entities{string value = _Barcode;GetBarcode(ref value);- return (_Barcode = value);+ return _Barcode = value;}set@@ -126,7 +126,7 @@ namespace Jellyfin.Data.Entities{string value = _LabelNumber;GetLabelNumber(ref value);- return (_LabelNumber = value);+ return _LabelNumber = value;}set@@ -164,7 +164,7 @@ namespace Jellyfin.Data.Entities{string value = _Country;GetCountry(ref value);- return (_Country = value);+ return _Country = value;}setdiff --git a/Jellyfin.Data/Entities/Person.cs b/Jellyfin.Data/Entities/Person.csindex e9b91a19e8..206fe77097 100644--- a/Jellyfin.Data/Entities/Person.cs+++ b/Jellyfin.Data/Entities/Person.cs@@ -83,7 +83,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -120,7 +120,7 @@ namespace Jellyfin.Data.Entities{Guid value = _UrlId;GetUrlId(ref value);- return (_UrlId = value);+ return _UrlId = value;}set@@ -159,7 +159,7 @@ namespace Jellyfin.Data.Entities{string value = _Name;GetName(ref value);- return (_Name = value);+ return _Name = value;}set@@ -197,7 +197,7 @@ namespace Jellyfin.Data.Entities{string value = _SourceId;GetSourceId(ref value);- return (_SourceId = value);+ return _SourceId = value;}set@@ -234,7 +234,7 @@ namespace Jellyfin.Data.Entities{DateTime value = _DateAdded;GetDateAdded(ref value);- return (_DateAdded = value);+ return _DateAdded = value;}internal set@@ -271,7 +271,7 @@ namespace Jellyfin.Data.Entities{DateTime value = _DateModified;GetDateModified(ref value);- return (_DateModified = value);+ return _DateModified = value;}internal setdiff --git a/Jellyfin.Data/Entities/PersonRole.cs b/Jellyfin.Data/Entities/PersonRole.csindex 2f14044ac2..928eb74aee 100644--- a/Jellyfin.Data/Entities/PersonRole.cs+++ b/Jellyfin.Data/Entities/PersonRole.cs@@ -89,7 +89,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -127,7 +127,7 @@ namespace Jellyfin.Data.Entities{string value = _Role;GetRole(ref value);- return (_Role = value);+ return _Role = value;}set@@ -164,7 +164,7 @@ namespace Jellyfin.Data.Entities{Enums.PersonRoleType value = _Type;GetType(ref value);- return (_Type = value);+ return _Type = value;}setdiff --git a/Jellyfin.Data/Entities/Rating.cs b/Jellyfin.Data/Entities/Rating.csindex 2c27dbd496..e00d5297db 100644--- a/Jellyfin.Data/Entities/Rating.cs+++ b/Jellyfin.Data/Entities/Rating.cs@@ -79,7 +79,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -116,7 +116,7 @@ namespace Jellyfin.Data.Entities{double value = _Value;GetValue(ref value);- return (_Value = value);+ return _Value = value;}set@@ -149,7 +149,7 @@ namespace Jellyfin.Data.Entities{int? value = _Votes;GetVotes(ref value);- return (_Votes = value);+ return _Votes = value;}setdiff --git a/Jellyfin.Data/Entities/RatingSource.cs b/Jellyfin.Data/Entities/RatingSource.csindex 2a4bed7ecc..941f53e52a 100644--- a/Jellyfin.Data/Entities/RatingSource.cs+++ b/Jellyfin.Data/Entities/RatingSource.cs@@ -86,7 +86,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -124,7 +124,7 @@ namespace Jellyfin.Data.Entities{string value = _Name;GetName(ref value);- return (_Name = value);+ return _Name = value;}set@@ -161,7 +161,7 @@ namespace Jellyfin.Data.Entities{double value = _MaximumValue;GetMaximumValue(ref value);- return (_MaximumValue = value);+ return _MaximumValue = value;}set@@ -198,7 +198,7 @@ namespace Jellyfin.Data.Entities{double value = _MinimumValue;GetMinimumValue(ref value);- return (_MinimumValue = value);+ return _MinimumValue = value;}setdiff --git a/Jellyfin.Data/Entities/Release.cs b/Jellyfin.Data/Entities/Release.csindex 098a78ca04..e08c04545c 100644--- a/Jellyfin.Data/Entities/Release.cs+++ b/Jellyfin.Data/Entities/Release.cs@@ -111,7 +111,7 @@ namespace Jellyfin.Data.Entities{int value = _Id;GetId(ref value);- return (_Id = value);+ return _Id = value;}protected set@@ -150,7 +150,7 @@ namespace Jellyfin.Data.Entities{string value = _Name;GetName(ref value);- return (_Name = value);+ return _Name = value;}setdiff --git a/Jellyfin.Data/Entities/Season.cs b/Jellyfin.Data/Entities/Season.csindex 03b3805cfb..d71f4b522b 100644--- a/Jellyfin.Data/Entities/Season.cs+++ b/Jellyfin.Data/Entities/Season.cs@@ -84,7 +84,7 @@ namespace Jellyfin.Data.Entities{int? value = _SeasonNumber;GetSeasonNumber(ref value);- return (_SeasonNumber = value);+ return _SeasonNumber = value;}setdiff --git a/Jellyfin.Data/Entities/SeasonMetadata.cs b/Jellyfin.Data/Entities/SeasonMetadata.csindex 35ff6e89ab..8659383385 100644--- a/Jellyfin.Data/Entities/SeasonMetadata.cs+++ b/Jellyfin.Data/Entities/SeasonMetadata.cs@@ -84,7 +84,7 @@ namespace Jellyfin.Data.Entities{string value = _Outline;GetOutline(ref value);- return (_Outline = value);+ return _Outline = value;}setdiff --git a/Jellyfin.Data/Entities/Series.cs b/Jellyfin.Data/Entities/Series.csindex 69b1854ab3..bede14acfb 100644--- a/Jellyfin.Data/Entities/Series.cs+++ b/Jellyfin.Data/Entities/Series.cs@@ -65,7 +65,7 @@ namespace Jellyfin.Data.Entities{DayOfWeek? value = _AirsDayOfWeek;GetAirsDayOfWeek(ref value);- return (_AirsDayOfWeek = value);+ return _AirsDayOfWeek = value;}set@@ -101,7 +101,7 @@ namespace Jellyfin.Data.Entities{DateTimeOffset? value = _AirsTime;GetAirsTime(ref value);- return (_AirsTime = value);+ return _AirsTime = value;}set@@ -134,7 +134,7 @@ namespace Jellyfin.Data.Entities{DateTimeOffset? value = _FirstAired;GetFirstAired(ref value);- return (_FirstAired = value);+ return _FirstAired = value;}setdiff --git a/Jellyfin.Data/Entities/SeriesMetadata.cs b/Jellyfin.Data/Entities/SeriesMetadata.csindex e72de07fd4..bb7426754c 100644--- a/Jellyfin.Data/Entities/SeriesMetadata.cs+++ b/Jellyfin.Data/Entities/SeriesMetadata.cs@@ -88,7 +88,7 @@ namespace Jellyfin.Data.Entities{string value = _Outline;GetOutline(ref value);- return (_Outline = value);+ return _Outline = value;}set@@ -126,7 +126,7 @@ namespace Jellyfin.Data.Entities{string value = _Plot;GetPlot(ref value);- return (_Plot = value);+ return _Plot = value;}set@@ -164,7 +164,7 @@ namespace Jellyfin.Data.Entities{string value = _Tagline;GetTagline(ref value);- return (_Tagline = value);+ return _Tagline = value;}set@@ -202,7 +202,7 @@ namespace Jellyfin.Data.Entities{string value = _Country;GetCountry(ref value);- return (_Country = value);+ return _Country = value;}setdiff --git a/Jellyfin.Data/Entities/Track.cs b/Jellyfin.Data/Entities/Track.csindex 59a9eb4af2..e13a53d382 100644--- a/Jellyfin.Data/Entities/Track.cs+++ b/Jellyfin.Data/Entities/Track.cs@@ -84,7 +84,7 @@ namespace Jellyfin.Data.Entities{int? value = _TrackNumber;GetTrackNumber(ref value);- return (_TrackNumber = value);+ return _TrackNumber = value;}setdiff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.csindex 5c02bd2b54..5c6a9d2a28 100644--- a/MediaBrowser.Controller/Entities/CollectionFolder.cs+++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs@@ -225,7 +225,7 @@ namespace MediaBrowser.Controller.Entitiesreturn null;}- return (totalProgresses / foldersWithProgress);+ return totalProgresses / foldersWithProgress;}protected override bool RefreshLinkedChildren(IEnumerable<FileSystemMetadata> fileSystemChildren)diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex d4fa8f9b30..6441340f97 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -480,7 +480,7 @@ namespace MediaBrowser.Controller.EntitiesinnerProgress.RegisterAction(p =>{double innerPercent = currentInnerPercent;- innerPercent += p / (count);+ innerPercent += p / count;progress.Report(innerPercent);});@@ -556,7 +556,7 @@ namespace MediaBrowser.Controller.EntitiesinnerProgress.RegisterAction(p =>{double innerPercent = currentInnerPercent;- innerPercent += p / (count);+ innerPercent += p / count;progress.Report(innerPercent);});diff --git a/MediaBrowser.Controller/Library/ItemResolveArgs.cs b/MediaBrowser.Controller/Library/ItemResolveArgs.csindex 92473eaa18..1516bb1e9b 100644--- a/MediaBrowser.Controller/Library/ItemResolveArgs.cs+++ b/MediaBrowser.Controller/Library/ItemResolveArgs.cs@@ -42,7 +42,7 @@ namespace MediaBrowser.Controller.Librarypublic LibraryOptions GetLibraryOptions(){- return LibraryOptions ?? (LibraryOptions = (Parent == null ? new LibraryOptions() : BaseItem.LibraryManager.GetLibraryOptions(Parent)));+ return LibraryOptions ?? (LibraryOptions = Parent == null ? new LibraryOptions() : BaseItem.LibraryManager.GetLibraryOptions(Parent));}/// <summary>diff --git a/MediaBrowser.Providers/Manager/MetadataService.cs b/MediaBrowser.Providers/Manager/MetadataService.csindex a3920d26f3..6f03d33aec 100644--- a/MediaBrowser.Providers/Manager/MetadataService.cs+++ b/MediaBrowser.Providers/Manager/MetadataService.cs@@ -391,7 +391,7 @@ namespace MediaBrowser.Providers.Manager{if (!child.IsFolder){- ticks += (child.RunTimeTicks ?? 0);+ ticks += child.RunTimeTicks ?? 0;}}