mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-06 07:48:50 +01:00
added new cabac value
This commit is contained in:
@@ -229,22 +229,6 @@ namespace MediaBrowser.Controller.Library
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the meta file by.
|
||||
/// </summary>
|
||||
/// <param name="name">The name.</param>
|
||||
/// <returns>FileSystemInfo.</returns>
|
||||
/// <exception cref="System.ArgumentNullException"></exception>
|
||||
public FileSystemInfo GetMetaFileByName(string name)
|
||||
{
|
||||
if (string.IsNullOrEmpty(name))
|
||||
{
|
||||
throw new ArgumentNullException();
|
||||
}
|
||||
|
||||
return GetFileSystemEntryByName(name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether [contains meta file by name] [the specified name].
|
||||
/// </summary>
|
||||
@@ -252,7 +236,12 @@ namespace MediaBrowser.Controller.Library
|
||||
/// <returns><c>true</c> if [contains meta file by name] [the specified name]; otherwise, <c>false</c>.</returns>
|
||||
public bool ContainsMetaFileByName(string name)
|
||||
{
|
||||
return GetMetaFileByName(name) != null;
|
||||
if (string.IsNullOrEmpty(name))
|
||||
{
|
||||
throw new ArgumentNullException();
|
||||
}
|
||||
|
||||
return GetFileSystemEntryByName(name) != null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -265,20 +254,13 @@ namespace MediaBrowser.Controller.Library
|
||||
return GetFileSystemEntryByName(name) != null;
|
||||
}
|
||||
|
||||
private bool _collectionTypeDiscovered;
|
||||
private string _collectionType;
|
||||
|
||||
public string GetCollectionType()
|
||||
{
|
||||
if (!_collectionTypeDiscovered)
|
||||
{
|
||||
_collectionType = Parent == null ? null : _libraryManager.FindCollectionType(Parent);
|
||||
_collectionTypeDiscovered = true;
|
||||
}
|
||||
|
||||
return _collectionType;
|
||||
return CollectionType;
|
||||
}
|
||||
|
||||
public string CollectionType { get; set; }
|
||||
|
||||
#region Equality Overrides
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user