initial support of multiple movies in folder

This commit is contained in:
Luke Pulverenti
2013-08-15 12:00:39 -04:00
parent 612b7e55d2
commit e934783b95
5 changed files with 76 additions and 10 deletions

View File

@@ -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);
}

View File

@@ -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;
}
}