The Free Software Media System - Server Backend & API
Fix some warnings
Bond_0091d19a5be617c
diff --git a/Emby.Dlna/DlnaManager.cs b/Emby.Dlna/DlnaManager.csindex f37d2d7d7b..277a0e678e 100644--- a/Emby.Dlna/DlnaManager.cs+++ b/Emby.Dlna/DlnaManager.cs@@ -112,7 +112,7 @@ namespace Emby.Dlnaif (profile == null){- LogUnmatchedProfile(deviceInfo);+ _logger.LogInformation("No matching device profile found. The default will need to be used. \n{@Profile}", deviceInfo);}else{@@ -122,23 +122,6 @@ namespace Emby.Dlnareturn profile;}- private void LogUnmatchedProfile(DeviceIdentification profile)- {- var builder = new StringBuilder();-- builder.AppendLine("No matching device profile found. The default will need to be used.");- builder.Append("FriendlyName: ").AppendLine(profile.FriendlyName);- builder.Append("Manufacturer: ").AppendLine(profile.Manufacturer);- builder.Append("ManufacturerUrl: ").AppendLine(profile.ManufacturerUrl);- builder.Append("ModelDescription: ").AppendLine(profile.ModelDescription);- builder.Append("ModelName: ").AppendLine(profile.ModelName);- builder.Append("ModelNumber: ").AppendLine(profile.ModelNumber);- builder.Append("ModelUrl: ").AppendLine(profile.ModelUrl);- builder.Append("SerialNumber: ").AppendLine(profile.SerialNumber);-- _logger.LogInformation(builder.ToString());- }-/// <summary>/// Attempts to match a device with a profile./// Rules:diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.csindex 8e89d9ae6a..722428c737 100644--- a/Emby.Dlna/Main/DlnaEntryPoint.cs+++ b/Emby.Dlna/Main/DlnaEntryPoint.cs@@ -218,11 +218,6 @@ namespace Emby.Dlna.Main}}- private void LogMessage(string msg)- {- _logger.LogDebug(msg);- }-private void StartDeviceDiscovery(ISsdpCommunicationsServer communicationsServer){try@@ -272,7 +267,7 @@ namespace Emby.Dlna.MainEnvironment.OSVersion.VersionString,_config.GetDlnaConfiguration().SendOnlyMatchedHost){- LogFunction = LogMessage,+ LogFunction = (msg) => _logger.LogDebug("{Msg}", msg),SupportPnpRootDevice = false};diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.csindex c6b32a52c9..67ecd04e0e 100644--- a/Emby.Server.Implementations/Dto/DtoService.cs+++ b/Emby.Server.Implementations/Dto/DtoService.cs@@ -134,14 +134,11 @@ namespace Emby.Server.Implementations.Dtovar dto = GetBaseItemDtoInternal(item, options, user, owner);if (item is LiveTvChannel tvChannel){- var list = new List<(BaseItemDto, LiveTvChannel)>(1) { (dto, tvChannel) };- LivetvManager.AddChannelInfo(list, options, user);+ LivetvManager.AddChannelInfo(new[] { (dto, tvChannel) }, options, user);}else if (item is LiveTvProgram){- var list = new List<(BaseItem, BaseItemDto)>(1) { (item, dto) };- var task = LivetvManager.AddInfoToProgramDto(list, options.Fields, user);- Task.WaitAll(task);+ LivetvManager.AddInfoToProgramDto(new[] { (item, dto) }, options.Fields, user).GetAwaiter().GetResult();}if (item is IItemByName itemByNamediff --git a/Emby.Server.Implementations/IO/LibraryMonitor.cs b/Emby.Server.Implementations/IO/LibraryMonitor.csindex 7ebc800b9a..b525f5a2f8 100644--- a/Emby.Server.Implementations/IO/LibraryMonitor.cs+++ b/Emby.Server.Implementations/IO/LibraryMonitor.cs@@ -267,7 +267,7 @@ namespace Emby.Server.Implementations.IOif (_fileSystemWatchers.TryAdd(path, newWatcher)){newWatcher.EnableRaisingEvents = true;- _logger.LogInformation("Watching directory " + path);+ _logger.LogInformation("Watching directory {Path}", path);}else{diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.csindex 2dbb569c63..559da7f5cc 100644--- a/Emby.Server.Implementations/Library/LibraryManager.cs+++ b/Emby.Server.Implementations/Library/LibraryManager.cs@@ -333,8 +333,7 @@ namespace Emby.Server.Implementations.Library{try{- var task = BaseItem.ChannelManager.DeleteItem(item);- Task.WaitAll(task);+ BaseItem.ChannelManager.DeleteItem(item).GetAwaiter().GetResult();}catch (ArgumentException){diff --git a/Emby.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.cs b/Emby.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.csindex 60720dd2f7..9e3f622766 100644--- a/Emby.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.cs+++ b/Emby.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.cs@@ -151,7 +151,7 @@ namespace Emby.Server.Implementations.Library.Resolvers.Audio{if (parser.IsMultiPart(path)){- logger.LogDebug("Found multi-disc folder: " + path);+ logger.LogDebug("Found multi-disc folder: {Path}", path);Interlocked.Increment(ref discSubfolderCount);}elsediff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.csindex 367f3cb9ed..644f9050d6 100644--- a/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs+++ b/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs@@ -957,7 +957,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTVpublic async Task<ILiveStream> GetChannelStreamWithDirectStreamProvider(string channelId, string streamId, List<ILiveStream> currentLiveStreams, CancellationToken cancellationToken){- _logger.LogInformation("Streaming Channel " + channelId);+ _logger.LogInformation("Streaming Channel {Id}", channelId);var result = string.IsNullOrEmpty(streamId) ?null :diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.csindex 8688688e92..5726d7158f 100644--- a/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs+++ b/Emby.Server.Implementations/LiveTv/EmbyTV/EncodedRecorder.cs@@ -87,8 +87,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTVErrorDialog = false};- var commandLineLogMessage = processStartInfo.FileName + " " + processStartInfo.Arguments;- _logger.LogInformation(commandLineLogMessage);+ _logger.LogInformation("{Filename} {Arguments}", processStartInfo.FileName, processStartInfo.Arguments);var logFilePath = Path.Combine(_appPaths.LogDirectoryPath, "record-transcode-" + Guid.NewGuid() + ".txt");Directory.CreateDirectory(Path.GetDirectoryName(logFilePath));@@ -97,7 +96,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV_logFileStream = new FileStream(logFilePath, FileMode.CreateNew, FileAccess.Write, FileShare.Read, IODefaults.FileStreamBufferSize, FileOptions.Asynchronous);await JsonSerializer.SerializeAsync(_logFileStream, mediaSource, _jsonOptions, cancellationToken).ConfigureAwait(false);- await _logFileStream.WriteAsync(Encoding.UTF8.GetBytes(Environment.NewLine + Environment.NewLine + commandLineLogMessage + Environment.NewLine + Environment.NewLine), cancellationToken).ConfigureAwait(false);+ await _logFileStream.WriteAsync(Encoding.UTF8.GetBytes(Environment.NewLine + Environment.NewLine + processStartInfo.FileName + " " + processStartInfo.Arguments + Environment.NewLine + Environment.NewLine), cancellationToken).ConfigureAwait(false);_process = new Process{diff --git a/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs b/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.csindex f2cdfeb16c..21a7f4f5f2 100644--- a/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs+++ b/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs@@ -638,7 +638,7 @@ namespace Emby.Server.Implementations.ScheduledTasks{try{- _logger.LogInformation(Name + ": Cancelling");+ _logger.LogInformation("{Name}: Cancelling", Name);token.Cancel();}catch (Exception ex)@@ -652,16 +652,16 @@ namespace Emby.Server.Implementations.ScheduledTasks{try{- _logger.LogInformation(Name + ": Waiting on Task");+ _logger.LogInformation("{Name}: Waiting on Task", Name);var exited = task.Wait(2000);if (exited){- _logger.LogInformation(Name + ": Task exited");+ _logger.LogInformation("{Name}: Task exited", Name);}else{- _logger.LogInformation(Name + ": Timed out waiting for task to stop");+ _logger.LogInformation("{Name}: Timed out waiting for task to stop", Name);}}catch (Exception ex)@@ -674,7 +674,7 @@ namespace Emby.Server.Implementations.ScheduledTasks{try{- _logger.LogDebug(Name + ": Disposing CancellationToken");+ _logger.LogDebug("{Name}: Disposing CancellationToken", Name);token.Dispose();}catch (Exception ex)diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.csindex 4a022c5dbc..ef95ebf943 100644--- a/Emby.Server.Implementations/Updates/InstallationManager.cs+++ b/Emby.Server.Implementations/Updates/InstallationManager.cs@@ -571,7 +571,7 @@ namespace Emby.Server.Implementations.Updates?? _pluginManager.Plugins.FirstOrDefault(p => p.Name.Equals(package.Name, StringComparison.OrdinalIgnoreCase) && p.Version.Equals(package.Version));await PerformPackageInstallation(package, plugin?.Manifest.Status ?? PluginStatus.Active, cancellationToken).ConfigureAwait(false);- _logger.LogInformation(plugin == null ? "New plugin installed: {PluginName} {PluginVersion}" : "Plugin updated: {PluginName} {PluginVersion}", package.Name, package.Version);+ _logger.LogInformation("Plugin {Action}: {PluginName} {PluginVersion}", plugin == null ? "installed" : "updated", package.Name, package.Version);return plugin != null;}diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.csindex 049fd503bd..caa3d23681 100644--- a/Jellyfin.Api/Controllers/DynamicHlsController.cs+++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs@@ -1391,7 +1391,7 @@ namespace Jellyfin.Api.Controllers}else{- _logger.LogError("Invalid HLS segment container: " + segmentFormat);+ _logger.LogError("Invalid HLS segment container: {SegmentFormat}", segmentFormat);}var maxMuxingQueueSize = _encodingOptions.MaxMuxingQueueSize > 128diff --git a/Jellyfin.Api/Helpers/TranscodingJobHelper.cs b/Jellyfin.Api/Helpers/TranscodingJobHelper.csindex f435bbf00e..9d80070ebf 100644--- a/Jellyfin.Api/Helpers/TranscodingJobHelper.cs+++ b/Jellyfin.Api/Helpers/TranscodingJobHelper.cs@@ -543,8 +543,7 @@ namespace Jellyfin.Api.Helpersstate,cancellationTokenSource);- var commandLineLogMessage = process.StartInfo.FileName + " " + process.StartInfo.Arguments;- _logger.LogInformation(commandLineLogMessage);+ _logger.LogInformation("{Filename} {Arguments}", process.StartInfo.FileName, process.StartInfo.Arguments);var logFilePrefix = "FFmpeg.Transcode-";if (state.VideoRequest != null@@ -562,8 +561,9 @@ namespace Jellyfin.Api.Helpers// FFmpeg writes debug/error info to stderr. This is useful when debugging so let's put it in the log directory.Stream logStream = new FileStream(logFilePath, FileMode.Create, FileAccess.Write, FileShare.Read, IODefaults.FileStreamBufferSize, FileOptions.Asynchronous);+ var commandLineLogMessage = process.StartInfo.FileName + " " + process.StartInfo.Arguments;var commandLineLogMessageBytes = Encoding.UTF8.GetBytes(request.Path + Environment.NewLine + Environment.NewLine + JsonSerializer.Serialize(state.MediaSource) + Environment.NewLine + Environment.NewLine + commandLineLogMessage + Environment.NewLine + Environment.NewLine);- await logStream.WriteAsync(commandLineLogMessageBytes, 0, commandLineLogMessageBytes.Length, cancellationTokenSource.Token).ConfigureAwait(false);+ await logStream.WriteAsync(commandLineLogMessageBytes, cancellationTokenSource.Token).ConfigureAwait(false);process.Exited += (sender, args) => OnFfMpegProcessExited(process, transcodingJob, state);diff --git a/Jellyfin.Api/Models/PlaybackDtos/TranscodingThrottler.cs b/Jellyfin.Api/Models/PlaybackDtos/TranscodingThrottler.csindex 7b32d76ba7..0136d9f86c 100644--- a/Jellyfin.Api/Models/PlaybackDtos/TranscodingThrottler.cs+++ b/Jellyfin.Api/Models/PlaybackDtos/TranscodingThrottler.cs@@ -197,7 +197,7 @@ namespace Jellyfin.Api.Models.PlaybackDtos}}- _logger.LogDebug("No throttle data for " + path);+ _logger.LogDebug("No throttle data for {Path}", path);return false;}diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.csindex ffd1c7f0a6..ec1ebaabec 100644--- a/MediaBrowser.Controller/Entities/Folder.cs+++ b/MediaBrowser.Controller/Entities/Folder.cs@@ -425,7 +425,7 @@ namespace MediaBrowser.Controller.Entities{if (item.IsFileProtocol){- Logger.LogDebug("Removed item: " + item.Path);+ Logger.LogDebug("Removed item: {Path}", item.Path);item.SetParent(null);LibraryManager.DeleteItem(item, new DeleteOptions { DeleteFileLocation = false }, this, false);@@ -807,7 +807,7 @@ namespace MediaBrowser.Controller.Entities{if (this is not ICollectionFolder){- Logger.LogDebug("Query requires post-filtering due to LinkedChildren. Type: " + GetType().Name);+ Logger.LogDebug("{Type}: Query requires post-filtering due to LinkedChildren.", GetType().Name);return true;}}diff --git a/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs b/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.csindex e6511ca8d7..7d62fb6e13 100644--- a/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs+++ b/MediaBrowser.Controller/MediaEncoding/IMediaEncoder.cs@@ -100,32 +100,6 @@ namespace MediaBrowser.Controller.MediaEncoding/// <returns>Location of video image.</returns>Task<string> ExtractVideoImage(string inputFile, string container, MediaSourceInfo mediaSource, MediaStream imageStream, int? imageStreamIndex, string outputExtension, CancellationToken cancellationToken);- /// <summary>- /// Extracts the video images on interval.- /// </summary>- /// <param name="inputFile">Input file.</param>- /// <param name="container">Video container type.</param>- /// <param name="videoStream">Media stream information.</param>- /// <param name="mediaSource">Media source information.</param>- /// <param name="threedFormat">Video 3D format.</param>- /// <param name="interval">Time interval.</param>- /// <param name="targetDirectory">Directory to write images.</param>- /// <param name="filenamePrefix">Filename prefix to use.</param>- /// <param name="maxWidth">Maximum width of image.</param>- /// <param name="cancellationToken">CancellationToken to use for operation.</param>- /// <returns>A task.</returns>- Task ExtractVideoImagesOnInterval(- string inputFile,- string container,- MediaStream videoStream,- MediaSourceInfo mediaSource,- Video3DFormat? threedFormat,- TimeSpan interval,- string targetDirectory,- string filenamePrefix,- int? maxWidth,- CancellationToken cancellationToken);-/// <summary>/// Gets the media info./// </summary>diff --git a/MediaBrowser.LocalMetadata/Parsers/BaseItemXmlParser.cs b/MediaBrowser.LocalMetadata/Parsers/BaseItemXmlParser.csindex 80eb454239..777fe67746 100644--- a/MediaBrowser.LocalMetadata/Parsers/BaseItemXmlParser.cs+++ b/MediaBrowser.LocalMetadata/Parsers/BaseItemXmlParser.cs@@ -149,7 +149,7 @@ namespace MediaBrowser.LocalMetadata.Parsers}else{- Logger.LogWarning("Invalid Added value found: " + val);+ Logger.LogWarning("Invalid Added value found: {Value}", val);}}diff --git a/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs b/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.csindex a524aeaa98..9ebc0d0cff 100644--- a/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs+++ b/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs@@ -223,11 +223,10 @@ namespace MediaBrowser.MediaEncoding.Attachmentsif (failed){- var msg = $"ffmpeg attachment extraction failed for {inputPath} to {outputPath}";+ _logger.LogError("ffmpeg attachment extraction failed for {InputPath} to {OutputPath}", inputPath, outputPath);- _logger.LogError(msg);-- throw new InvalidOperationException(msg);+ throw new InvalidOperationException(+ string.Format(CultureInfo.InvariantCulture, "ffmpeg attachment extraction failed for {0} to {1}", inputPath, outputPath));}else{diff --git a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.csindex fbc7ba72f0..a2bac7b49a 100644--- a/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs+++ b/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs@@ -682,11 +682,9 @@ namespace MediaBrowser.MediaEncoding.Encoderif (exitCode == -1 || !file.Exists || file.Length == 0){- var msg = string.Format(CultureInfo.InvariantCulture, "ffmpeg image extraction failed for {0}", inputPath);+ _logger.LogError("ffmpeg image extraction failed for {Path}", inputPath);- _logger.LogError(msg);-- throw new FfmpegException(msg);+ throw new FfmpegException(string.Format(CultureInfo.InvariantCulture, "ffmpeg image extraction failed for {0}", inputPath));}return tempExtractPath;@@ -705,117 +703,6 @@ namespace MediaBrowser.MediaEncoding.Encoderreturn time.ToString(@"hh\:mm\:ss\.fff", CultureInfo.InvariantCulture);}- public async Task ExtractVideoImagesOnInterval(- string inputFile,- string container,- MediaStream videoStream,- MediaSourceInfo mediaSource,- Video3DFormat? threedFormat,- TimeSpan interval,- string targetDirectory,- string filenamePrefix,- int? maxWidth,- CancellationToken cancellationToken)- {- var inputArgument = GetInputArgument(inputFile, mediaSource);-- var vf = "fps=fps=1/" + interval.TotalSeconds.ToString(CultureInfo.InvariantCulture);-- if (maxWidth.HasValue)- {- var maxWidthParam = maxWidth.Value.ToString(CultureInfo.InvariantCulture);-- vf += string.Format(CultureInfo.InvariantCulture, ",scale=min(iw\\,{0}):trunc(ow/dar/2)*2", maxWidthParam);- }-- Directory.CreateDirectory(targetDirectory);- var outputPath = Path.Combine(targetDirectory, filenamePrefix + "%05d.jpg");-- var args = string.Format(CultureInfo.InvariantCulture, "-i {0} -threads {3} -v quiet {2} -f image2 \"{1}\"", inputArgument, outputPath, vf, _threads);-- if (!string.IsNullOrWhiteSpace(container))- {- var inputFormat = EncodingHelper.GetInputFormat(container);- if (!string.IsNullOrWhiteSpace(inputFormat))- {- args = "-f " + inputFormat + " " + args;- }- }-- var processStartInfo = new ProcessStartInfo- {- CreateNoWindow = true,- UseShellExecute = false,- FileName = _ffmpegPath,- Arguments = args,- WindowStyle = ProcessWindowStyle.Hidden,- ErrorDialog = false- };-- _logger.LogInformation(processStartInfo.FileName + " " + processStartInfo.Arguments);-- await _thumbnailResourcePool.WaitAsync(cancellationToken).ConfigureAwait(false);-- bool ranToCompletion = false;-- var process = new Process- {- StartInfo = processStartInfo,- EnableRaisingEvents = true- };- using (var processWrapper = new ProcessWrapper(process, this))- {- try- {- StartProcess(processWrapper);-- // Need to give ffmpeg enough time to make all the thumbnails, which could be a while,- // but we still need to detect if the process hangs.- // Making the assumption that as long as new jpegs are showing up, everything is good.-- bool isResponsive = true;- int lastCount = 0;-- while (isResponsive)- {- if (await process.WaitForExitAsync(TimeSpan.FromSeconds(30)).ConfigureAwait(false))- {- ranToCompletion = true;- break;- }-- cancellationToken.ThrowIfCancellationRequested();-- var jpegCount = _fileSystem.GetFilePaths(targetDirectory)- .Count(i => string.Equals(Path.GetExtension(i), ".jpg", StringComparison.OrdinalIgnoreCase));-- isResponsive = jpegCount > lastCount;- lastCount = jpegCount;- }-- if (!ranToCompletion)- {- StopProcess(processWrapper, 1000);- }- }- finally- {- _thumbnailResourcePool.Release();- }-- var exitCode = ranToCompletion ? processWrapper.ExitCode ?? 0 : -1;-- if (exitCode == -1)- {- var msg = string.Format(CultureInfo.InvariantCulture, "ffmpeg image extraction failed for {0}", inputArgument);-- _logger.LogError(msg);-- throw new FfmpegException(msg);- }- }- }-private void StartProcess(ProcessWrapper process){process.Process.Start();diff --git a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.csindex 2b2de2ff6f..89365a516c 100644--- a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs+++ b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs@@ -636,17 +636,14 @@ namespace MediaBrowser.MediaEncoding.Subtitlesif (failed){- var msg = $"ffmpeg subtitle extraction failed for {inputPath} to {outputPath}";+ _logger.LogError("ffmpeg subtitle extraction failed for {InputPath} to {OutputPath}", inputPath, outputPath);- _logger.LogError(msg);-- throw new FfmpegException(msg);+ throw new FfmpegException(+ string.Format(CultureInfo.InvariantCulture, "ffmpeg subtitle extraction failed for {0} to {1}", inputPath, outputPath));}else{- var msg = $"ffmpeg subtitle extraction completed for {inputPath} to {outputPath}";-- _logger.LogInformation(msg);+ _logger.LogInformation("ffmpeg subtitle extraction completed for {InputPath} to {OutputPath}", inputPath, outputPath);}if (string.Equals(outputCodec, "ass", StringComparison.OrdinalIgnoreCase))diff --git a/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.cs b/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.csindex 2c893ac9f0..3011d65a6d 100644--- a/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.cs+++ b/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.cs@@ -103,7 +103,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers}else{- Logger.LogInformation("Unrecognized series status: " + status);+ Logger.LogInformation("Unrecognized series status: {Status}", status);}}diff --git a/jellyfin.ruleset b/jellyfin.rulesetindex 3bced438cd..e14c1c4270 100644--- a/jellyfin.ruleset+++ b/jellyfin.ruleset@@ -44,9 +44,13 @@<Rule Id="CA1725" Action="Error" /><!-- error on CA1725: Call async methods when in an async method --><Rule Id="CA1727" Action="Error" />+ <!-- error on CA1843: Do not use 'WaitAll' with a single task -->+ <Rule Id="CA1843" Action="Error" /><!-- error on CA2016: Forward the CancellationToken parameter to methods that take oneor pass in 'CancellationToken.None' explicitly to indicate intentionally not propagating the token --><Rule Id="CA2016" Action="Error" />+ <!-- error on CA2254: Template should be a static expression -->+ <Rule Id="CA2254" Action="Error" /><!-- disable warning CA1014: Mark assemblies with CLSCompliantAttribute --><Rule Id="CA1014" Action="Info" />