mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fix attachment extraction when input path contains quotes
This commit is contained in:
parent
9e4befa52e
commit
8c4d23435e
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user