Kaynağa Gözat

Fix attachment extraction when input path contains quotes

Dmitry Lyzo 9 ay önce
ebeveyn
işleme
8c4d23435e

+ 2 - 2
MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs

@@ -284,7 +284,7 @@ namespace MediaBrowser.MediaEncoding.Attachments
 
 
                 if (extractableAttachmentIds.Count > 0)
                 if (extractableAttachmentIds.Count > 0)
                 {
                 {
-                    await CacheAllAttachmentsInternal(mediaPath, inputFile, mediaSource, extractableAttachmentIds, cancellationToken).ConfigureAwait(false);
+                    await CacheAllAttachmentsInternal(mediaPath, _mediaEncoder.GetInputArgument(inputFile, mediaSource), mediaSource, extractableAttachmentIds, cancellationToken).ConfigureAwait(false);
                 }
                 }
             }
             }
             catch (Exception ex)
             catch (Exception ex)
@@ -323,7 +323,7 @@ namespace MediaBrowser.MediaEncoding.Attachments
 
 
             processArgs += string.Format(
             processArgs += string.Format(
                 CultureInfo.InvariantCulture,
                 CultureInfo.InvariantCulture,
-                " -i \"{0}\" -t 0 -f null null",
+                " -i {0} -t 0 -f null null",
                 inputFile);
                 inputFile);
 
 
             int exitCode;
             int exitCode;