completed multiple movie in folder support

This commit is contained in:
Luke Pulverenti
2013-08-15 15:09:52 -04:00
parent 34bf41721a
commit 11c3778053
8 changed files with 121 additions and 164 deletions

View File

@@ -55,6 +55,8 @@ namespace MediaBrowser.Controller.Entities
public const string ThemeVideosFolderName = "backdrops";
public const string XbmcTrailerFileSuffix = "-trailer";
public bool IsInMixedFolder { get; set; }
private string _name;
/// <summary>
/// Gets or sets the name.

View File

@@ -24,11 +24,6 @@ namespace MediaBrowser.Controller.Entities
/// <value>The game system.</value>
public string GameSystem { get; set; }
/// <summary>
/// Returns true if the game is combined with other games in the same folder
/// </summary>
public bool IsInMixedFolder { get; set; }
/// <summary>
///
/// </summary>
@@ -36,18 +31,7 @@ namespace MediaBrowser.Controller.Entities
{
get
{
var directoryName = System.IO.Path.GetDirectoryName(Path);
if (IsInMixedFolder)
{
// It's a file
var baseMetaPath = System.IO.Path.Combine(directoryName, "metadata");
var fileName = System.IO.Path.GetFileNameWithoutExtension(Path);
return fileName != null ? System.IO.Path.Combine(baseMetaPath, fileName) : null;
}
return directoryName;
return System.IO.Path.GetDirectoryName(Path);
}
}

View File

@@ -65,8 +65,6 @@ 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>