mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
fixes #640 - Add management filters
This commit is contained in:
@@ -138,6 +138,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// Gets or sets the type of the location.
|
||||
/// </summary>
|
||||
/// <value>The type of the location.</value>
|
||||
[IgnoreDataMember]
|
||||
public virtual LocationType LocationType
|
||||
{
|
||||
get
|
||||
|
||||
@@ -262,7 +262,10 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
if (!IsInMixedFolder)
|
||||
{
|
||||
return new[] { System.IO.Path.GetDirectoryName(Path) };
|
||||
if (VideoType == VideoType.VideoFile || VideoType == VideoType.Iso)
|
||||
{
|
||||
return new[] { System.IO.Path.GetDirectoryName(Path) };
|
||||
}
|
||||
}
|
||||
|
||||
return base.GetDeletePaths();
|
||||
|
||||
Reference in New Issue
Block a user