mirror of https://github.com/jellyfin/jellyfin.git
use filename not video.name for extra suffix type comparison
This commit is contained in:
parent
bc93f34ffa
commit
aa4b7c6547
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue