mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-02-02 18:21:48 +08:00
Chore: update subtitle exts
This commit is contained in:
@@ -168,7 +168,7 @@ public class OrganizeMetadataTask : IScheduledTask
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user