Use filename for single videos (non-movie/null collections) in MovieResolver (#14162)

This commit is contained in:
theguymadmax 2025-06-08 21:52:25 -04:00 committed by GitHub
parent bdb3adeb30
commit d7faf9a327
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -462,7 +462,11 @@ namespace Emby.Server.Implementations.Library.Resolvers.Movies
{ {
var movie = (T)result.Items[0]; var movie = (T)result.Items[0];
movie.IsInMixedFolder = false; movie.IsInMixedFolder = false;
movie.Name = Path.GetFileName(movie.ContainingFolderPath); if (collectionType == CollectionType.movies || collectionType is null)
{
movie.Name = Path.GetFileName(movie.ContainingFolderPath);
}
return movie; return movie;
} }
} }