Skip to content

Commit

Permalink
fix title command bork
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 21, 2021
1 parent bcf48c8 commit 34fdc32
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -67,18 +67,15 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
else if (arg.matchesPrefix("subtitle")) {
scriptEntry.addObject("subtitle", arg.asElement());
}
else if (arg.matchesPrefix("fade_in")
&& arg.matchesArgumentType(DurationTag.class)) {
else if (arg.matchesPrefix("fade_in")) {
String argStr = TagManager.tag(arg.getValue(), scriptEntry.getContext());
scriptEntry.addObject("fade_in", DurationTag.valueOf(argStr, scriptEntry.context));
}
else if (arg.matchesPrefix("stay")
&& arg.matchesArgumentType(DurationTag.class)) {
else if (arg.matchesPrefix("stay")) {
String argStr = TagManager.tag(arg.getValue(), scriptEntry.getContext());
scriptEntry.addObject("stay", DurationTag.valueOf(argStr, scriptEntry.context));
}
else if (arg.matchesPrefix("fade_out")
&& arg.matchesArgumentType(DurationTag.class)) {
else if (arg.matchesPrefix("fade_out")) {
String argStr = TagManager.tag(arg.getValue(), scriptEntry.getContext());
scriptEntry.addObject("fade_out", DurationTag.valueOf(argStr, scriptEntry.context));
}
Expand Down

0 comments on commit 34fdc32

Please sign in to comment.