FF-1721: New plugin Nextcloud

This commit is contained in:
John Andrews
2024-08-12 13:36:09 +12:00
parent 641704e045
commit 0bacb3d2b4
3 changed files with 8 additions and 1 deletions

View File

@@ -36,8 +36,15 @@ public class UploadToNextcloud : Node
public override int Execute(NodeParameters args)
{
if (args.Licensed == false)
{
args.FailureReason = "Nextcloud requires a FileFlows license";
args.Logger?.ELog(args.FailureReason);
return -1;
}
var settings = args.GetPluginSettings<PluginSettings>();
if (string.IsNullOrWhiteSpace(settings?.Url))
{
args.FailureReason = "No Nextcloud URL set";