mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 12:44:19 +01:00
3.2.9.1
This commit is contained in:
@@ -27,6 +27,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// <summary>
|
||||
/// We don't support manual shortcuts
|
||||
/// </summary>
|
||||
[IgnoreDataMember]
|
||||
protected override bool SupportsShortcutChildren
|
||||
{
|
||||
get
|
||||
|
||||
@@ -1926,8 +1926,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
.Where(i => i.IsLocalFile)
|
||||
.Select(i => System.IO.Path.GetDirectoryName(i.Path))
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.SelectMany(directoryService.GetFiles)
|
||||
.Select(i => i.FullName)
|
||||
.SelectMany(directoryService.GetFilePaths)
|
||||
.ToList();
|
||||
|
||||
var deletedImages = ImageInfos
|
||||
@@ -2100,8 +2099,8 @@ namespace MediaBrowser.Controller.Entities
|
||||
var extensions = new[] { ".nfo", ".xml", ".srt" }.ToList();
|
||||
extensions.AddRange(SupportedImageExtensionsList);
|
||||
|
||||
return FileSystem.GetFiles(System.IO.Path.GetDirectoryName(Path))
|
||||
.Where(i => extensions.Contains(i.Extension, StringComparer.OrdinalIgnoreCase) && System.IO.Path.GetFileNameWithoutExtension(i.FullName).StartsWith(filename, StringComparison.OrdinalIgnoreCase))
|
||||
return FileSystem.GetFiles(System.IO.Path.GetDirectoryName(Path), extensions.ToArray(), false, false)
|
||||
.Where(i => System.IO.Path.GetFileNameWithoutExtension(i.FullName).StartsWith(filename, StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
||||
@@ -103,6 +103,16 @@ namespace MediaBrowser.Controller.Providers
|
||||
return GetFileSystemEntries(path, clearCache).Where(i => !i.IsDirectory);
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetFilePaths(string path)
|
||||
{
|
||||
return _fileSystem.GetFilePaths(path);
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetFilePaths(string path, bool clearCache)
|
||||
{
|
||||
return _fileSystem.GetFilePaths(path);
|
||||
}
|
||||
|
||||
public FileSystemMetadata GetFile(string path)
|
||||
{
|
||||
FileSystemMetadata file;
|
||||
|
||||
@@ -8,9 +8,10 @@ namespace MediaBrowser.Controller.Providers
|
||||
public interface IDirectoryService
|
||||
{
|
||||
IEnumerable<FileSystemMetadata> GetFileSystemEntries(string path);
|
||||
IEnumerable<FileSystemMetadata> GetFiles(string path);
|
||||
IEnumerable<FileSystemMetadata> GetDirectories(string path);
|
||||
IEnumerable<FileSystemMetadata> GetFiles(string path, bool clearCache);
|
||||
IEnumerable<FileSystemMetadata> GetFiles(string path);
|
||||
IEnumerable<string> GetFilePaths(string path);
|
||||
IEnumerable<string> GetFilePaths(string path, bool clearCache);
|
||||
FileSystemMetadata GetFile(string path);
|
||||
Dictionary<string, FileSystemMetadata> GetFileSystemDictionary(string path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user