Skip to content

Commit

Permalink
Fix spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Oct 31, 2022
1 parent b9bae7b commit 9019294
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"MkvMergePath": "",
"FfmpegPath": "",
"SubsFolder": "./GenshinData/Subtitle",
"SubtiteStyle": "Style: Default,{fontname},12,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100.0,100.0,0.0,0.0,1,0,0.5,2,10,10,14,1"
"SubsStyle": "Style: Default,{fontname},12,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100.0,100.0,0.0,0.0,1,0,0.5,2,10,10,14,1"
}
}
4 changes: 2 additions & 2 deletions src/FileTypes/ASS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ [Script Info]
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
""");
if (string.IsNullOrWhiteSpace(Program.settings?.SubtiteStyle))
if (string.IsNullOrWhiteSpace(Program.settings?.SubsStyle))
{
sb.AppendLine($"Style: Default,{_fontname},12,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100.0,100.0,0.0,0.0,1,0,0.5,2,10,10,14,1");
}
else
{
sb.AppendLine(Program.settings?.SubtiteStyle.Replace("{fontname}", _fontname));
sb.AppendLine(Program.settings?.SubsStyle.Replace("{fontname}", _fontname));
}
sb.AppendLine("""
Expand Down
4 changes: 2 additions & 2 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal sealed class Settings
public string? MkvMergePath { get; set; }
public string? SubsFolder { get; set; }
public string? FfmpegPath { get; set; }
public string? SubtiteStyle { get; set; }
public string? SubsStyle { get; set; }

}
internal sealed class Program
Expand Down Expand Up @@ -203,7 +203,7 @@ private static int Main(string[] args)
"MkvMergePath": "",
"FfmpegPath": "",
"SubsFolder": "",
"SubtiteStyle": "Style: Default,{fontname},12,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100.0,100.0,0.0,0.0,1,0,0.5,2,10,10,14,1"
"SubsStyle": "Style: Default,{fontname},12,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100.0,100.0,0.0,0.0,1,0,0.5,2,10,10,14,1"
}
}
""";
Expand Down

0 comments on commit 9019294

Please sign in to comment.