Skip to content

Commit

Permalink
Chore: update subtitle exts
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu committed Dec 13, 2023
1 parent 4e8e2cb commit 39e8026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private static bool HasExternalChineseSubtitle(string path)

private static bool HasExternalChineseSubtitle(string basename, IEnumerable<string> files)
{
var r = new Regex(@"\.(chinese|ch[ist]|zh(-(cn|hk|tw|hans|hant))?)\.(ass|srt|ssa|stl|sub|vid|vtt)$",
var r = new Regex(@"\.(ch[ist]|zho?(-(cn|hk|sg|tw))?)\.(ass|srt|ssa|smi|sub|idx|psb|vtt)$",
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.Compiled);
return files.Any(name => r.IsMatch(name) &&
r.Replace(name, string.Empty)
Expand Down

0 comments on commit 39e8026

Please sign in to comment.