Skip to content

Commit

Permalink
perf: supply more video and subtitle formats (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Jan 11, 2025
1 parent 2f8c5ca commit 72c8024
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions SubRenamer/Common/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ namespace SubRenamer.Common;

public static class Constants
{
private static readonly HashSet<string> VideoExtensions = ["mkv", "mp4", "flv", "avi", "mov", "rmvb", "wmv", "mpg", "avs", "m4v", "ts"];
private static readonly HashSet<string> SubtitleExtensions = ["srt", "ass", "ssa", "sub", "idx", "txt", "vtt", "smi", "xml", "json"];
private static readonly HashSet<string> VideoExtensions = [
"mkv", "mp4", "flv", "avi", "mov", "rmvb", "wmv", "mpg", "avs", "m4v", "ts",
"3gp", "asf", "divx", "f4v", "m2ts", "mpeg", "mts", "ogv", "qt", "rm", "rv",
"swf", "vob", "webm", "xvid", "strm",
];
private static readonly HashSet<string> SubtitleExtensions = [
"srt", "ass", "ssa", "sub", "idx", "txt", "ttxt", "vtt", "smi", "xml", "json",
"dfxp", "ttml", "mpl2", "aqt", "jss", "psb", "pjs", "stl", "usf", "sbv", "lrc", "cap",
];

public static HashSet<string> GetVideoExtensions()
{
Expand Down

0 comments on commit 72c8024

Please sign in to comment.