aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-11-09 18:36:00 -0700
committerGitHub <noreply@github.com>2021-11-09 18:36:00 -0700
commit57d5423d640e234b48ec24bccb88e59302aa5f87 (patch)
tree8de67a20a404687d61da7c4ee9cf3828f13db6a1 /MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs
parenta7a6a22109cd723a75b8e4f31f3403cb6a28e2cc (diff)
parent1d19a5be617c191a731b76e556fae1e395eb3788 (diff)
Merge pull request #6816 from Bond-009/warn55
Fix some warnings
Diffstat (limited to 'MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs')
-rw-r--r--MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs b/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs
index a524aeaa9..9ebc0d0cf 100644
--- a/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs
+++ b/MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs
@@ -223,11 +223,10 @@ namespace MediaBrowser.MediaEncoding.Attachments
if (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
{