mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-04 13:22:52 +01:00
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
This commit is contained in:
@@ -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),
|
||||
@@ -535,6 +535,12 @@ namespace Emby.Naming.Common
|
||||
"other",
|
||||
MediaType.Video),
|
||||
|
||||
new ExtraRule(
|
||||
ExtraType.Clip,
|
||||
ExtraRuleType.DirectoryName,
|
||||
"clips",
|
||||
MediaType.Video),
|
||||
|
||||
new ExtraRule(
|
||||
ExtraType.Trailer,
|
||||
ExtraRuleType.Filename,
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user