Apply review suggestions

This commit is contained in:
Shadowghost
2026-07-21 14:30:55 +02:00
parent b99703301f
commit 4cc69f4be0
3 changed files with 3 additions and 3 deletions
@@ -102,7 +102,7 @@ namespace MediaBrowser.MediaEncoding.Attachments
CancellationToken cancellationToken)
{
var shouldExtractOneByOne = mediaSource.MediaAttachments.Any(a => !string.IsNullOrEmpty(a.FileName)
&& PathHelper.GetSafeLeafFileName(a.FileName) != a.FileName);
&& !string.Equals(PathHelper.GetSafeLeafFileName(a.FileName), a.FileName, StringComparison.Ordinal));
if (shouldExtractOneByOne && !inputFile.EndsWith(".mks", StringComparison.OrdinalIgnoreCase))
{
await ExtractAllAttachmentsIndividuallyInternal(