mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 06:18:28 +01:00
completed multiple movie in folder support
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user