use filename not video.name for extra suffix type comparison

This commit is contained in:
SenorSmartyPants 2023-03-07 14:47:52 -06:00
parent bc93f34ffa
commit aa4b7c6547
1 changed files with 2 additions and 2 deletions

View File

@ -2670,8 +2670,8 @@ namespace Emby.Server.Implementations.Library
}
}
// if owner is Episode, only suffix type matches will be allowed, episode name must match exactly
if (owner is not Episode || (prefix is not null && prefix.Equals(ownerVideoInfo.Name, StringComparison.OrdinalIgnoreCase)))
// if owner is Episode, only suffix type matches will be allowed, episode file name must match exactly
if (owner is not Episode || (prefix is not null && prefix.Equals(Path.GetFileNameWithoutExtension(ownerVideoInfo.Path), StringComparison.OrdinalIgnoreCase)))
{
var extra = GetExtra(current, extraType.Value);
if (extra is not null)