FF-1476 - new flow element genre matches

This commit is contained in:
John Andrews
2024-04-07 12:01:43 +12:00
parent 40cc50fd94
commit 7e3b76f4d0
2 changed files with 14 additions and 9 deletions

View File

@@ -17,19 +17,24 @@ public class GenreMatches: Node
public override int Outputs => 2;
/// <inheritdoc />
public override string Icon => "fas fa-theater-masks";
/// <inheritdoc />
public override FlowElementType Type => FlowElementType.Logic;
/// <inheritdoc />
public override string HelpUrl => "https://fileflows.com/docs/plugins/meta-nodes/genre-matches";
/// <summary>
/// Gets or sets if all selected genres should must be present
/// </summary>
[Boolean(1)]
public bool MatchAll { get; set; }
/// <summary>
/// The genres to match
/// </summary>
[Checklist(nameof(Options), 1)]
[Checklist(nameof(Options), 2)]
[Required]
public List<string> Genres { get; set; }
/// <summary>
/// Gets or sets if all selected genres should must be present
/// </summary>
[Boolean(2)]
public bool MatchAll { get; set; }
private static List<ListOption> _Options;
/// <summary>

View File

@@ -4,8 +4,8 @@
"GenreMatches": {
"Description": "Matches the genre metadata against the specified genre(s).",
"Outputs": {
"1": "Genres match",
"2": "Genres do not match"
"1": "Genre match",
"2": "Genre does not match"
},
"Fields": {
"Genres": "Genres",