Add rule to pick up theme videos

This commit is contained in:
Joe Rogers 2021-12-24 14:09:10 +01:00 committed by Cody Robibero (Rebase PR Action)
parent c0ab54f0bd
commit cf29aae690
2 changed files with 7 additions and 0 deletions

View File

@ -470,6 +470,12 @@ namespace Emby.Naming.Common
" sample", " sample",
MediaType.Video), MediaType.Video),
new ExtraRule(
ExtraType.ThemeVideo,
ExtraRuleType.DirectoryName,
"backdrops",
MediaType.Video),
new ExtraRule( new ExtraRule(
ExtraType.ThemeSong, ExtraType.ThemeSong,
ExtraRuleType.Filename, ExtraRuleType.Filename,

View File

@ -53,6 +53,7 @@ namespace Jellyfin.Naming.Tests.Video
[InlineData(ExtraType.Sample, "samples")] [InlineData(ExtraType.Sample, "samples")]
[InlineData(ExtraType.Clip, "shorts")] [InlineData(ExtraType.Clip, "shorts")]
[InlineData(ExtraType.Clip, "featurettes")] [InlineData(ExtraType.Clip, "featurettes")]
[InlineData(ExtraType.ThemeVideo, "backdrops")]
[InlineData(ExtraType.Unknown, "extras")] [InlineData(ExtraType.Unknown, "extras")]
public void TestDirectories(ExtraType type, string dirName) public void TestDirectories(ExtraType type, string dirName)
{ {