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