mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-04-23 16:48:15 -05:00
added validation to some nodes
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user