mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 02:19:31 -06:00
FF-1572: Rearranged the track remover fields
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -22,22 +22,19 @@ public class FfmpegBuilderAudioTrackRemover: FfmpegBuilderNode
|
||||
[NumberInt(3)]
|
||||
public int RemoveIndex { get; set; }
|
||||
|
||||
|
||||
[TextVariable(4)]
|
||||
[ConditionEquals(nameof(RemoveAll), false)]
|
||||
public string Pattern { get; set; }
|
||||
|
||||
[Boolean(5)]
|
||||
[ConditionEquals(nameof(RemoveAll), false)]
|
||||
public bool NotMatching { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type to match against
|
||||
/// </summary>
|
||||
[Required]
|
||||
[Select(nameof(MatchTypes), 6)]
|
||||
[Select(nameof(MatchTypes), 4)]
|
||||
[DefaultValue(MatchTypeOption.Title)]
|
||||
[ConditionEquals(nameof(RemoveAll), false)]
|
||||
public MatchTypeOption MatchType { get; set; }
|
||||
|
||||
private static List<ListOption> _MatchTypes;
|
||||
private static List<ListOption>? _MatchTypes;
|
||||
/// <summary>
|
||||
/// Gets the match types
|
||||
/// </summary>
|
||||
public static List<ListOption> MatchTypes
|
||||
{
|
||||
get
|
||||
@@ -55,6 +52,15 @@ public class FfmpegBuilderAudioTrackRemover: FfmpegBuilderNode
|
||||
}
|
||||
}
|
||||
|
||||
[TextVariable(5)]
|
||||
[ConditionEquals(nameof(RemoveAll), false)]
|
||||
public string Pattern { get; set; }
|
||||
|
||||
[Boolean(6)]
|
||||
[ConditionEquals(nameof(RemoveAll), false)]
|
||||
public bool NotMatching { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Left in for legacy reasons, will be removed later
|
||||
/// </summary>
|
||||
@@ -83,9 +89,9 @@ public class FfmpegBuilderAudioTrackRemover: FfmpegBuilderNode
|
||||
{
|
||||
_StreamTypeOptions = new List<ListOption>
|
||||
{
|
||||
new ListOption { Label = "Audio", Value = "Audio" },
|
||||
new ListOption { Label = "Video", Value = "Video" },
|
||||
new ListOption { Label = "Subtitle", Value = "Subtitle" }
|
||||
new () { Label = "Video", Value = "Video" },
|
||||
new () { Label = "Audio", Value = "Audio" },
|
||||
new () { Label = "Subtitle", Value = "Subtitle" }
|
||||
};
|
||||
}
|
||||
return _StreamTypeOptions;
|
||||
|
||||
Reference in New Issue
Block a user