From 79ee36ee155483fcbb2b2863f549b68034634dbc Mon Sep 17 00:00:00 2001 From: TonyB Date: Sun, 6 Oct 2024 15:12:20 +0800 Subject: Add EpisodeExpression for anime file names --- Emby.Naming/Common/NamingOptions.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Emby.Naming') 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*)?(?\[[^\]]+\]|[^[\]]+)\s*\[(?\d+)\]") + { + IsNamed = true + }, }; VideoExtraRules = new[] -- cgit v1.2.3