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

Binary file not shown.

Binary file not shown.

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))

View File

@@ -18,7 +18,7 @@ public class FFmpegBuilderWatermark: FfmpegBuilderNode
/// <inheritdoc />
public override string Icon => "far fa-copyright";
/// <inheritdoc />
public override bool Enterprise => true;
public override LicenseLevel LicenseLevel => LicenseLevel.Enterprise;
/// <summary>
/// Gets or sets the watermark image

View File

@@ -17,10 +17,10 @@ public class FfmpegBuilderProres : FfmpegBuilderNode
/// <summary>
/// Gets that this is an enterprise flow element
/// </summary>
public override bool Enterprise => true;
public override LicenseLevel LicenseLevel => LicenseLevel.Enterprise;
/// <summary>
/// Gets or sets the profile to use
/// Gets or sets the encoder to use
/// </summary>
[Select(nameof(Encoders), 1)]
[DefaultValue(4)]
@@ -120,12 +120,6 @@ public class FfmpegBuilderProres : FfmpegBuilderNode
/// <returns>the output to call next</returns>
public override int Execute(NodeParameters args)
{
if (args.Enterprise != true)
{
args.Logger.ELog("Requires an Enterprise license to use this flow element.");
return -1;
}
var stream = Model.VideoStreams.FirstOrDefault(x => x.Deleted == false);
if (stream == null)
{

View File

@@ -13,8 +13,8 @@ public class FfmpegBuilderRemuxToMxf : FfmpegBuilderNode
/// <summary>
/// Gets that this is an enterprise flow element
/// </summary>
public override bool Enterprise => true;
public override LicenseLevel LicenseLevel => LicenseLevel.Enterprise;
/// <inheritdoc />
public override string Icon => "svg:mxf";

View File

@@ -122,7 +122,7 @@ public static class DownloadHelper
}
catch (Exception ex)
{
return Result<string>.Fail($"Exception during download: {ex.Message}");
return Result<string>.Fail($"Exception during download: {ex.Message}{Environment.NewLine}{ex.StackTrace}");
}
}
/// <summary>