This commit is contained in:
John Andrews
2024-02-20 20:51:41 +13:00
parent 6007684ad0
commit 86b89ea48d
17 changed files with 57 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ public class Apprise: Node
/// <inheritdoc />
public override FlowElementType Type => FlowElementType.Communication;
/// <inheritdoc />
public override string Icon => "fas fa-bell";
public override string Icon => "svg:apprise";
/// <inheritdoc />
public override bool FailureNode => true;
/// <inheritdoc />

View File

@@ -4,13 +4,22 @@ namespace FileFlows.AudioNodes
{
public class ConvertToMP3 : ConvertNode
{
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/audio-nodes/convert-to-mp3";
/// <inheritdoc />
protected override string Extension => "mp3";
/// <inheritdoc />
public override string Icon => "svg:mp3";
}
public class ConvertToWAV : ConvertNode
{
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/audio-nodes/convert-to-wav";
/// <inheritdoc />
protected override string Extension => "wav";
/// <inheritdoc />
public override string Icon => "svg:wav";
private static List<ListOption> _BitrateOptions;
public new static List<ListOption> BitrateOptions
@@ -41,8 +50,12 @@ namespace FileFlows.AudioNodes
public class ConvertToAAC : ConvertNode
{
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/audio-nodes/convert-to-aac";
/// <inheritdoc />
protected override string Extension => "aac";
/// <inheritdoc />
public override string Icon => "svg:aac";
/// <summary>
/// Gets or sets if high efficiency should be used
@@ -54,9 +67,13 @@ namespace FileFlows.AudioNodes
}
public class ConvertToOGG: ConvertNode
{
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/audio-nodes/convert-to-ogg";
/// <inheritdoc />
protected override string Extension => "ogg";
public static List<ListOption> BitrateOptions => ConvertNode.BitrateOptions;
/// <inheritdoc />
public override string Icon => "svg:ogg";
}
public class ConvertAudio : ConvertNode

View File

@@ -24,10 +24,11 @@ public class SevenZip : Node
/// Gets the element type
/// </summary>
public override FlowElementType Type => FlowElementType.Process;
/// <summary>
/// Gets the icon
/// </summary>
public override string Icon => "fas fa-file-archive";
public override string Icon => "svg:7zip";
/// <summary>
/// Gets the help URL
/// </summary>

View File

@@ -5,11 +5,15 @@ namespace FileFlows.Emby.MediaManagement;
public class EmbyUpdater: Node
{
/// <inheritdoc />
public override int Inputs => 1;
/// <inheritdoc />
public override int Outputs => 2;
/// <inheritdoc />
public override FlowElementType Type => FlowElementType.Process;
public override string Icon => "fas fa-paper-plane";
/// <inheritdoc />
public override string Icon => "svg:emby";
/// <inheritdoc />
public override bool NoEditorOnAdd => true;
[Text(1)]
@@ -21,6 +25,7 @@ public class EmbyUpdater: Node
[KeyValue(3, null)]
public List<KeyValuePair<string, string>> Mapping { get; set; }
/// <inheritdoc />
public override int Execute(NodeParameters args)
{
var settings = args.GetPluginSettings<PluginSettings>();

View File

@@ -23,7 +23,7 @@ public class Gotify: Node
/// <summary>
/// Gets the icon for this flow element
/// </summary>
public override string Icon => "fas fa-bell";
public override string Icon => "svg:gotify";
/// <summary>
/// Gets if this can be used in a failure flow
/// </summary>

View File

@@ -32,7 +32,7 @@ public class NfoFileCreator : Node
/// <summary>
/// Gets the icon
/// </summary>
public override string Icon => "fas fa-file-code";
public override string Icon => "svg:nfo";
private const string TAB = " ";

View File

@@ -4,7 +4,6 @@ namespace FileFlows.Plex.MediaManagement;
public class PlexAnalyze : PlexNode
{
public override string Icon => "fas fa-sync";
protected override int ExecuteActual(NodeParameters args, PlexDirectory directory, string baseUrl, string mappedPath, string accessToken)
{

View File

@@ -4,7 +4,6 @@ namespace FileFlows.Plex.MediaManagement;
public class PlexUpdater: PlexNode
{
public override string Icon => "fas fa-paper-plane";
protected override int ExecuteActual(NodeParameters args, PlexDirectory directory, string url, string mappedPath, string accessToken)
{
url += $"library/sections/{directory.Key}/refresh?path={Uri.EscapeDataString(mappedPath)}&X-Plex-Token=" + accessToken;

View File

@@ -10,10 +10,17 @@ namespace FileFlows.Plex.MediaManagement;
public abstract class PlexNode:Node
{
/// <inheritdoc />
public override int Inputs => 1;
/// <inheritdoc />
public override int Outputs => 2;
/// <inheritdoc />
public override FlowElementType Type => FlowElementType.Process;
/// <inheritdoc />
public override bool NoEditorOnAdd => true;
/// <inheritdoc />
public override string Icon => "svg:plex";
[Text(1)]
public string ServerUrl { get; set; }

View File

@@ -14,6 +14,8 @@ public class FfmpegBuilderRemuxToMP4: FfmpegBuilderNode
/// Gets if the editor should be shown on add by default
/// </summary>
public override bool NoEditorOnAdd => true;
/// <inheritdoc />
public override string Icon => "svg:mp4";
/// <summary>
/// Gets or sets if hvc1 tag should be added

View File

@@ -2,6 +2,8 @@
public class FfmpegBuilderRemuxToMkv : FfmpegBuilderNode
{
/// <inheritdoc />
public override string Icon => "svg:mkv";
public override string HelpUrl => "https://fileflows.com/docs/plugins/video-nodes/ffmpeg-builder/remux-to-mkv";
public override int Execute(NodeParameters args)

View File

@@ -2,6 +2,9 @@
public class FfmpegBuilderRemuxToMov : FfmpegBuilderNode
{
/// <inheritdoc />
public override string Icon => "svg:mov";
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/video-nodes/ffmpeg-builder/remux-to-mov";
public override int Execute(NodeParameters args)

View File

@@ -14,6 +14,9 @@ public class FfmpegBuilderRemuxToMxf : FfmpegBuilderNode
/// Gets that this is an enterprise flow element
/// </summary>
public override bool Enterprise => true;
/// <inheritdoc />
public override string Icon => "svg:mxf";
/// <inheritdoc />
public override int Execute(NodeParameters args)

View File

@@ -2,6 +2,8 @@
public class FfmpegBuilderRemuxToWebm : FfmpegBuilderNode
{
/// <inheritdoc />
public override string Icon => "svg:webm";
public override string HelpUrl => "https://fileflows.com/docs/plugins/video-nodes/ffmpeg-builder/remux-to-webm";
public override int Execute(NodeParameters args)

View File

@@ -9,6 +9,9 @@ public class DisableAmd:DisableEncoder
/// Gets the encoder variable
/// </summary>
protected override string EncoderVariable => "NoAMD";
/// <inheritdoc />
public override string Icon => "svg:amd";
/// <summary>
/// Gets the help URL

View File

@@ -9,6 +9,9 @@ public class DisableIntelQsv:DisableEncoder
/// Gets the encoder variable
/// </summary>
protected override string EncoderVariable => "NoQSV";
/// <inheritdoc />
public override string Icon => "svg:intel";
/// <summary>
/// Gets the help URL

View File

@@ -9,6 +9,9 @@ public class DisableNvidia:DisableEncoder
/// Gets the encoder variable
/// </summary>
protected override string EncoderVariable => "NoNvidia";
/// <inheritdoc />
public override string Icon => "svg:nvidia";
/// <summary>
/// Gets the help URL