mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-18 20:24:20 +01:00
Removed vf collection type
This commit is contained in:
parent
81c16c305b
commit
42a2835633
@@ -31,7 +31,7 @@ namespace MediaBrowser.Controller.Library
|
||||
{
|
||||
for (int i = 0; i < FileSystemChildren.Length; i++)
|
||||
{
|
||||
if (System.IO.Path.GetFileName(FileSystemChildren[i].Path).Equals(name, StringComparison.OrdinalIgnoreCase))
|
||||
if (FileSystemChildren[i].cFileName.Equals(name, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -42,15 +42,7 @@ namespace MediaBrowser.Controller.Library
|
||||
|
||||
public bool ContainsFolder(string name)
|
||||
{
|
||||
for (int i = 0; i < FileSystemChildren.Length; i++)
|
||||
{
|
||||
if (System.IO.Path.GetFileName(FileSystemChildren[i].Path).Equals(name, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return ContainsFile(name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,34 +69,6 @@ namespace MediaBrowser.Controller.Library
|
||||
}
|
||||
}
|
||||
|
||||
public VirtualFolder VirtualFolder
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Parent != null)
|
||||
{
|
||||
return Parent.VirtualFolder;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public string VirtualFolderCollectionType
|
||||
{
|
||||
get
|
||||
{
|
||||
VirtualFolder vf = VirtualFolder;
|
||||
|
||||
if (vf == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return vf.CollectionType;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsHidden
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user