mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-18 00:06:27 +01:00
update m3u tuner
This commit is contained in:
@@ -277,7 +277,7 @@ namespace MediaBrowser.Controller.Library
|
||||
/// </summary>
|
||||
/// <param name="paths">The paths.</param>
|
||||
/// <returns>IEnumerable{System.String}.</returns>
|
||||
IEnumerable<FileSystemMetadata> NormalizeRootPathList(IEnumerable<FileSystemMetadata> paths);
|
||||
List<FileSystemMetadata> NormalizeRootPathList(IEnumerable<FileSystemMetadata> paths);
|
||||
|
||||
/// <summary>
|
||||
/// Registers the item.
|
||||
|
||||
@@ -40,20 +40,7 @@ namespace MediaBrowser.Controller.Library
|
||||
/// Gets the file system children.
|
||||
/// </summary>
|
||||
/// <value>The file system children.</value>
|
||||
public IEnumerable<FileSystemMetadata> FileSystemChildren
|
||||
{
|
||||
get
|
||||
{
|
||||
var dict = FileSystemDictionary;
|
||||
|
||||
if (dict == null)
|
||||
{
|
||||
return new List<FileSystemMetadata>();
|
||||
}
|
||||
|
||||
return dict.Values;
|
||||
}
|
||||
}
|
||||
public FileSystemMetadata[] FileSystemChildren { get; set; }
|
||||
|
||||
public LibraryOptions LibraryOptions { get; set; }
|
||||
|
||||
@@ -62,12 +49,6 @@ namespace MediaBrowser.Controller.Library
|
||||
return LibraryOptions ?? (LibraryOptions = (Parent == null ? new LibraryOptions() : BaseItem.LibraryManager.GetLibraryOptions(Parent)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the file system dictionary.
|
||||
/// </summary>
|
||||
/// <value>The file system dictionary.</value>
|
||||
public Dictionary<string, FileSystemMetadata> FileSystemDictionary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parent.
|
||||
/// </summary>
|
||||
@@ -224,13 +205,11 @@ namespace MediaBrowser.Controller.Library
|
||||
throw new ArgumentNullException();
|
||||
}
|
||||
|
||||
if (FileSystemDictionary != null)
|
||||
foreach (var file in FileSystemChildren)
|
||||
{
|
||||
FileSystemMetadata entry;
|
||||
|
||||
if (FileSystemDictionary.TryGetValue(path, out entry))
|
||||
if (string.Equals(file.FullName, path, StringComparison.Ordinal))
|
||||
{
|
||||
return entry;
|
||||
return file;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user