aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Common/NamingOptions.cs
diff options
context:
space:
mode:
authorphotonconvergence <116527579+photonconvergence@users.noreply.github.com>2022-10-27 18:01:04 -0700
committerphotonconvergence <116527579+photonconvergence@users.noreply.github.com>2022-10-27 18:01:04 -0700
commit09e8a7e62c9a8ef567f2d336e37a7cc732e3aaab (patch)
tree8f0f8d8590e730d61d896344c9bd5e253482a941 /Emby.Naming/Common/NamingOptions.cs
parent790f67aac11e5c32bad19126d4e35b2afa259006 (diff)
Fix extra type differentiation
Change rules for Featurettes and Shorts so they don't both get classed as ExtraType.Clip. Fix test that these changes break
Diffstat (limited to 'Emby.Naming/Common/NamingOptions.cs')
-rw-r--r--Emby.Naming/Common/NamingOptions.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs
index 513733ab5..25131e9c5 100644
--- a/Emby.Naming/Common/NamingOptions.cs
+++ b/Emby.Naming/Common/NamingOptions.cs
@@ -512,13 +512,13 @@ namespace Emby.Naming.Common
MediaType.Video),
new ExtraRule(
- ExtraType.Clip,
+ ExtraType.Short,
ExtraRuleType.DirectoryName,
"shorts",
MediaType.Video),
new ExtraRule(
- ExtraType.Clip,
+ ExtraType.Featurette,
ExtraRuleType.DirectoryName,
"featurettes",
MediaType.Video),
@@ -536,6 +536,12 @@ namespace Emby.Naming.Common
MediaType.Video),
new ExtraRule(
+ ExtraType.Clip,
+ ExtraRuleType.DirectoryName,
+ "clips",
+ MediaType.Video),
+
+ new ExtraRule(
ExtraType.Trailer,
ExtraRuleType.Filename,
"trailer",
@@ -638,13 +644,13 @@ namespace Emby.Naming.Common
MediaType.Video),
new ExtraRule(
- ExtraType.Clip,
+ ExtraType.Featurette,
ExtraRuleType.Suffix,
"-featurette",
MediaType.Video),
new ExtraRule(
- ExtraType.Clip,
+ ExtraType.Short,
ExtraRuleType.Suffix,
"-short",
MediaType.Video),