mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-01 04:34:26 -04:00
Fix media detection for single video files with subfolders (#14140)
This commit is contained in:
parent
c3762186da
commit
0cea039445
@ -456,8 +456,9 @@ namespace Emby.Server.Implementations.Library.Resolvers.Movies
|
|||||||
{
|
{
|
||||||
var videoPath = result.Items[0].Path;
|
var videoPath = result.Items[0].Path;
|
||||||
var hasPhotos = photos.Any(i => !PhotoResolver.IsOwnedByResolvedMedia(videoPath, i.Name));
|
var hasPhotos = photos.Any(i => !PhotoResolver.IsOwnedByResolvedMedia(videoPath, i.Name));
|
||||||
|
var hasOtherSubfolders = multiDiscFolders.Count > 0;
|
||||||
|
|
||||||
if (!hasPhotos)
|
if (!hasPhotos && !hasOtherSubfolders)
|
||||||
{
|
{
|
||||||
var movie = (T)result.Items[0];
|
var movie = (T)result.Items[0];
|
||||||
movie.IsInMixedFolder = false;
|
movie.IsInMixedFolder = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user