mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 21:54:26 -04:00
Merge branch 'media-attachments' of github.com:Unhelpful/jellyfin into media-attachments
This commit is contained in:
commit
7ea05bb86b
@ -164,7 +164,12 @@ namespace MediaBrowser.MediaEncoding.Attachments
|
|||||||
|
|
||||||
Directory.CreateDirectory(Path.GetDirectoryName(outputPath));
|
Directory.CreateDirectory(Path.GetDirectoryName(outputPath));
|
||||||
|
|
||||||
var processArgs = string.Format("-dump_attachment:{1} {2} -i {0} -t 0 -f null null", inputPath, attachmentStreamIndex, outputPath);
|
var processArgs = string.Format(
|
||||||
|
CultureInfo.InvariantCulture,
|
||||||
|
"-dump_attachment:{1} {2} -i {0} -t 0 -f null null",
|
||||||
|
inputPath,
|
||||||
|
attachmentStreamIndex,
|
||||||
|
outputPath);
|
||||||
var startInfo = new ProcessStartInfo
|
var startInfo = new ProcessStartInfo
|
||||||
{
|
{
|
||||||
Arguments = processArgs,
|
Arguments = processArgs,
|
||||||
@ -233,7 +238,6 @@ namespace MediaBrowser.MediaEncoding.Attachments
|
|||||||
{
|
{
|
||||||
_logger.LogError(ex, "Error deleting extracted attachment {Path}", outputPath);
|
_logger.LogError(ex, "Error deleting extracted attachment {Path}", outputPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (!File.Exists(outputPath))
|
else if (!File.Exists(outputPath))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user