From cf29aae690961dc281e79931932834d9c5f7854d Mon Sep 17 00:00:00 2001 From: Joe Rogers <1337joe@gmail.com> Date: Fri, 24 Dec 2021 14:09:10 +0100 Subject: [PATCH] Add rule to pick up theme videos --- Emby.Naming/Common/NamingOptions.cs | 6 ++++++ tests/Jellyfin.Naming.Tests/Video/ExtraTests.cs | 1 + 2 files changed, 7 insertions(+) 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 @@ -470,6 +470,12 @@ namespace Emby.Naming.Common " sample", MediaType.Video), + new ExtraRule( + ExtraType.ThemeVideo, + ExtraRuleType.DirectoryName, + "backdrops", + MediaType.Video), + new ExtraRule( ExtraType.ThemeSong, ExtraRuleType.Filename, 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) {