mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 22:08:27 +01:00
initial support of multiple movies in folder
This commit is contained in:
@@ -47,7 +47,7 @@ namespace MediaBrowser.Controller.Entities.Movies
|
||||
|
||||
// Must have a parent to have special features
|
||||
// In other words, it must be part of the Parent/Child tree
|
||||
if (LocationType == LocationType.FileSystem && Parent != null)
|
||||
if (LocationType == LocationType.FileSystem && Parent != null && !IsInMixedFolder)
|
||||
{
|
||||
specialFeaturesChanged = await RefreshSpecialFeatures(cancellationToken, forceSave, forceRefresh, allowSlowProviders).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -65,6 +65,8 @@ namespace MediaBrowser.Controller.Entities
|
||||
return GetPlayableStreamFiles(Path);
|
||||
}
|
||||
|
||||
public bool IsInMixedFolder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Should be overridden to return the proper folder where metadata lives
|
||||
/// </summary>
|
||||
@@ -86,6 +88,11 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
get
|
||||
{
|
||||
if (IsInMixedFolder)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return VideoType == VideoType.VideoFile || VideoType == VideoType.Iso || IsMultiPart;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user