mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-20 16:09:30 -06:00
moving original dates to NodeParameters
This commit is contained in:
@@ -47,12 +47,6 @@ namespace FileFlows.AudioNodes
|
||||
|
||||
string ffprobe = ffprobeResult.Value;
|
||||
|
||||
|
||||
if (args.FileService.FileCreationTimeUtc(args.WorkingFile).Success(out DateTime createTime))
|
||||
args.Variables["ORIGINAL_CREATE_UTC"] = createTime;
|
||||
if (args.FileService.FileLastWriteTimeUtc(args.WorkingFile).Success(out DateTime writeTime))
|
||||
args.Variables["ORIGINAL_LAST_WRITE_UTC"] = writeTime;
|
||||
|
||||
try
|
||||
{
|
||||
if (ReadAudioFileInfo(args, ffmpegExe, ffprobe, LocalWorkingFile))
|
||||
|
||||
@@ -45,8 +45,6 @@ public partial class InputFile : Node
|
||||
return -1;
|
||||
}
|
||||
|
||||
args.Variables["ORIGINAL_CREATE_UTC"] = args.FileService.FileCreationTimeUtc(args.WorkingFile).ValueOrDefault;
|
||||
args.Variables["ORIGINAL_LAST_WRITE_UTC"] = args.FileService.FileLastWriteTimeUtc(args.WorkingFile).ValueOrDefault;
|
||||
return 1;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -32,11 +32,6 @@ public class ImageFile : ImageBaseNode
|
||||
{
|
||||
try
|
||||
{
|
||||
if (args.FileService.FileCreationTimeUtc(args.WorkingFile).Success(out DateTime createTime))
|
||||
args.Variables["ORIGINAL_CREATE_UTC"] = createTime;
|
||||
if (args.FileService.FileLastWriteTimeUtc(args.WorkingFile).Success(out DateTime writeTime))
|
||||
args.Variables["ORIGINAL_LAST_WRITE_UTC"] = writeTime;
|
||||
|
||||
if(string.IsNullOrEmpty(base.CurrentFormat) == false)
|
||||
args.RecordStatisticRunningTotals("IMAGE_FORMAT", base.CurrentFormat);
|
||||
|
||||
|
||||
@@ -100,13 +100,6 @@ public class VideoFile : VideoNode
|
||||
args.Logger.ILog($"Video stream '{vs.Codec}' '{vs.Index}'");
|
||||
}
|
||||
|
||||
if (args.FileService.FileCreationTimeUtc(args.WorkingFile).Success(out DateTime creationTimeUtc))
|
||||
args.Variables["ORIGINAL_CREATE_UTC"] = creationTimeUtc;
|
||||
if (args.FileService.FileCreationTimeUtc(args.WorkingFile).Success(out DateTime lastWriteTimeUtc))
|
||||
args.Variables["ORIGINAL_LAST_WRITE_UTC"] = lastWriteTimeUtc;
|
||||
|
||||
|
||||
|
||||
foreach (var stream in videoInfo.VideoStreams)
|
||||
{
|
||||
if (string.IsNullOrEmpty(stream.Codec) == false)
|
||||
|
||||
Reference in New Issue
Block a user