aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Common
diff options
context:
space:
mode:
authorTonyB <zbtsebuaa@outlook.com>2024-10-06 15:12:20 +0800
committerTonyB <zbtsebuaa@outlook.com>2024-10-12 17:09:18 +0800
commit79ee36ee155483fcbb2b2863f549b68034634dbc (patch)
treef3248cef5fd176c34a232c0b2ab539fe4323a3b4 /Emby.Naming/Common
parent822d4075843cdd4634faf738c2fb69b6b3201d5a (diff)
Add EpisodeExpression for anime file names
Diffstat (limited to 'Emby.Naming/Common')
-rw-r--r--Emby.Naming/Common/NamingOptions.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs
index 333d237a2..f04346594 100644
--- a/Emby.Naming/Common/NamingOptions.cs
+++ b/Emby.Naming/Common/NamingOptions.cs
@@ -467,6 +467,14 @@ namespace Emby.Naming.Common
{
IsNamed = true
},
+
+ // Anime style expression
+ // "[Group][Series Name][21][1080p][FLAC][HASH]"
+ // "[Group] Series Name [04][BDRIP]"
+ new EpisodeExpression(@"(?:\[(?:[^\]]+)\]\s*)?(?<seriesname>\[[^\]]+\]|[^[\]]+)\s*\[(?<epnumber>\d+)\]")
+ {
+ IsNamed = true
+ },
};
VideoExtraRules = new[]