added validation to some nodes

This commit is contained in:
reven
2021-11-24 17:55:27 +13:00
parent 962fe7959c
commit 599ee1700e
20 changed files with 24 additions and 220 deletions
+3
View File
@@ -1,6 +1,7 @@
namespace FileFlows.VideoNodes
{
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using FileFlows.Plugin;
using FileFlows.Plugin.Attributes;
@@ -10,10 +11,12 @@ namespace FileFlows.VideoNodes
[DefaultValue("-i {WorkingFile} {TempDir}output.mkv")]
[TextArea(1)]
[Required]
public string CommandLine { get; set; }
[DefaultValue("mkv")]
[Text(2)]
[Required]
public string Extension { get; set; }
public override string Icon => "far fa-file-video";
+2
View File
@@ -4,6 +4,7 @@ namespace FileFlows.VideoNodes
using System.ComponentModel;
using FileFlows.Plugin;
using FileFlows.Plugin.Attributes;
using System.ComponentModel.DataAnnotations;
public class VideoCodec : VideoNode
{
@@ -12,6 +13,7 @@ namespace FileFlows.VideoNodes
public override FlowElementType Type => FlowElementType.Logic;
[StringArray(1)]
[Required]
public string[] Codecs { get; set; }
public override int Execute(NodeParameters args)
Binary file not shown.