mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-05-05 07:39:07 -05:00
added Failure nodes and started working on ffmpeg metadata node
This commit is contained in:
Binary file not shown.
@@ -6,7 +6,7 @@ namespace CollectionNodes
|
||||
public class Plugin : IPlugin
|
||||
{
|
||||
public string Name => "Collection Nodes";
|
||||
public string MinimumVersion => "0.5.0.683";
|
||||
public string MinimumVersion => "0.5.2.690";
|
||||
|
||||
[Folder(1)]
|
||||
[Required]
|
||||
|
||||
@@ -18,7 +18,6 @@ namespace CollectionNodes.Tests
|
||||
public void ILog(params object[] args) => Log("INFO", args);
|
||||
|
||||
public void WLog(params object[] args) => Log("WARN", args);
|
||||
|
||||
private void Log(string type, object[] args)
|
||||
{
|
||||
if (args == null || args.Length == 0)
|
||||
@@ -39,6 +38,15 @@ namespace CollectionNodes.Tests
|
||||
string log = string.Join(Environment.NewLine, Messages);
|
||||
return log.Contains(message);
|
||||
}
|
||||
|
||||
public string GetTail(int length = 50)
|
||||
{
|
||||
if (length <= 0)
|
||||
length = 50;
|
||||
if (Messages.Count <= length)
|
||||
return string.Join(Environment.NewLine, Messages);
|
||||
return string.Join(Environment.NewLine, Messages.TakeLast(length));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user