mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-02-04 21:49:17 -06:00
FF-1721: New plugin Nextcloud
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user