aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rogers <1337joe@gmail.com>2021-12-24 14:09:10 +0100
committerCody Robibero (Rebase PR Action) <cody@robibe.ro>2021-12-24 21:21:19 +0000
commitcf29aae690961dc281e79931932834d9c5f7854d (patch)
tree4ba8cff23af41b7c9f77337c19d76b238f198cb5
parentc0ab54f0bdd51518ac803095ecf0a8d74945be30 (diff)
Add rule to pick up theme videos
-rw-r--r--Emby.Naming/Common/NamingOptions.cs6
-rw-r--r--tests/Jellyfin.Naming.Tests/Video/ExtraTests.cs1
2 files changed, 7 insertions, 0 deletions
diff --git a/Emby.Naming/Common/NamingOptions.cs b/Emby.Naming/Common/NamingOptions.cs
index aa62a47f1..c0be0b7c6 100644
--- a/Emby.Naming/Common/NamingOptions.cs
+++ b/Emby.Naming/Common/NamingOptions.cs
@@ -471,6 +471,12 @@ namespace Emby.Naming.Common
MediaType.Video),
new ExtraRule(
+ ExtraType.ThemeVideo,
+ ExtraRuleType.DirectoryName,
+ "backdrops",
+ MediaType.Video),
+
+ new ExtraRule(
ExtraType.ThemeSong,
ExtraRuleType.Filename,
"theme",
diff --git a/tests/Jellyfin.Naming.Tests/Video/ExtraTests.cs b/tests/Jellyfin.Naming.Tests/Video/ExtraTests.cs
index 8dd637559..24f9bf98d 100644
--- a/tests/Jellyfin.Naming.Tests/Video/ExtraTests.cs
+++ b/tests/Jellyfin.Naming.Tests/Video/ExtraTests.cs
@@ -53,6 +53,7 @@ namespace Jellyfin.Naming.Tests.Video
[InlineData(ExtraType.Sample, "samples")]
[InlineData(ExtraType.Clip, "shorts")]
[InlineData(ExtraType.Clip, "featurettes")]
+ [InlineData(ExtraType.ThemeVideo, "backdrops")]
[InlineData(ExtraType.Unknown, "extras")]
public void TestDirectories(ExtraType type, string dirName)
{