From 7785b51f572cf48a62dfc2ee60fc1db0ccedf1a2 Mon Sep 17 00:00:00 2001 From: Sven Cazier Date: Sat, 26 Jul 2025 23:24:58 +0200 Subject: Enhance extra rules for video and audio file naming; update tests for new naming conventions --- Emby.Naming/Common/NamingOptions.cs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Emby.Naming/Common') diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs index 192235bae..1c518f0cc 100644 --- a/Emby.Naming/Common/NamingOptions.cs +++ b/Emby.Naming/Common/NamingOptions.cs @@ -572,6 +572,18 @@ namespace Emby.Naming.Common "trailer", MediaType.Video), + new ExtraRule( + ExtraType.Sample, + ExtraRuleType.Filename, + "sample", + MediaType.Video), + + new ExtraRule( + ExtraType.ThemeSong, + ExtraRuleType.Filename, + "theme", + MediaType.Audio), + new ExtraRule( ExtraType.Trailer, ExtraRuleType.Suffix, @@ -593,13 +605,7 @@ namespace Emby.Naming.Common new ExtraRule( ExtraType.Trailer, ExtraRuleType.Suffix, - " trailer", - MediaType.Video), - - new ExtraRule( - ExtraType.Sample, - ExtraRuleType.Filename, - "sample", + "- trailer", MediaType.Video), new ExtraRule( @@ -623,15 +629,9 @@ namespace Emby.Naming.Common new ExtraRule( ExtraType.Sample, ExtraRuleType.Suffix, - " sample", + "- sample", MediaType.Video), - new ExtraRule( - ExtraType.ThemeSong, - ExtraRuleType.Filename, - "theme", - MediaType.Audio), - new ExtraRule( ExtraType.Scene, ExtraRuleType.Suffix, -- cgit v1.2.3