aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2026-08-02 14:25:00 -0400
committerGitHub <noreply@github.com>2026-08-02 14:25:00 -0400
commit24022092adfb5fa1c7d4e93ffa8027f893249886 (patch)
tree35ae2ec504cf1c2f760e9e53182887c71526dd34 /Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs
parente2e3094d2d4e022cde3f688a44446853ca553b2b (diff)
parent79a55327dcb3899fb85147f7ec6b19cd71e5dcfb (diff)
Merge pull request #17456 from Shadowghost/fix-extras
Fix extras naming and version assignment
Diffstat (limited to 'Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs')
-rw-r--r--Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs b/Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs
index 6ba4a7bce6..a0f75e4ddb 100644
--- a/Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs
+++ b/Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs
@@ -54,12 +54,13 @@ namespace Emby.Server.Implementations.Library.Resolvers
_ => _videoResolvers
};
- public bool TryGetExtraTypeForOwner(string path, VideoFileInfo ownerVideoFileInfo, [NotNullWhen(true)] out ExtraType? extraType, string? libraryRoot = "")
+ public bool TryGetExtraTypeForOwner(string path, VideoFileInfo ownerVideoFileInfo, [NotNullWhen(true)] out ExtraType? extraType, [NotNullWhen(true)] out ExtraRule? extraRule, string? libraryRoot = "")
{
var extraResult = GetExtraInfo(path, _namingOptions, libraryRoot);
- if (extraResult.ExtraType is null)
+ if (extraResult.ExtraType is null || extraResult.Rule is null)
{
extraType = null;
+ extraRule = null;
return false;
}
@@ -88,6 +89,7 @@ namespace Emby.Server.Implementations.Library.Resolvers
}
extraType = extraResult.ExtraType;
+ extraRule = extraResult.Rule;
return isValid;
}