FF-1721: New plugin Nextcloud

This commit is contained in:
John Andrews
2024-08-13 12:50:47 +12:00
parent 4564450be7
commit 5fecf61347
7 changed files with 10 additions and 20 deletions

View File

@@ -22,6 +22,9 @@ public class UploadToNextcloud : Node
/// <inheritdoc />
public override string Group => "Nextcloud";
/// <inheritdoc />
public override LicenseLevel LicenseLevel => LicenseLevel.Standard;
/// <summary>
/// Gets or sets the destination path
/// </summary>
@@ -33,16 +36,9 @@ public class UploadToNextcloud : Node
/// </summary>
[TextVariable(2)]
public string File { get; set; } = null!;
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))