فهرست منبع

Add rule to pick up theme videos

Joe Rogers 3 سال پیش
والد
کامیت
cf29aae690
2فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 6 0
      Emby.Naming/Common/NamingOptions.cs
  2. 1 0
      tests/Jellyfin.Naming.Tests/Video/ExtraTests.cs

+ 6 - 0
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,

+ 1 - 0
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)
         {