mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
connect updates
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using MediaBrowser.Common.IO;
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Providers;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
@@ -14,11 +13,13 @@ namespace MediaBrowser.LocalMetadata
|
||||
{
|
||||
protected IFileSystem FileSystem;
|
||||
|
||||
public async Task<LocalMetadataResult<T>> GetMetadata(ItemInfo info, CancellationToken cancellationToken)
|
||||
public async Task<LocalMetadataResult<T>> GetMetadata(ItemInfo info,
|
||||
IDirectoryService directoryService,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
var result = new LocalMetadataResult<T>();
|
||||
|
||||
var file = GetXmlFile(info, new DirectoryService(new NullLogger()));
|
||||
var file = GetXmlFile(info, directoryService);
|
||||
|
||||
if (file == null)
|
||||
{
|
||||
|
||||
@@ -33,7 +33,8 @@ namespace MediaBrowser.LocalMetadata.Images
|
||||
{
|
||||
var parentPath = Path.GetDirectoryName(item.Path);
|
||||
|
||||
var parentPathFiles = directoryService.GetFileSystemEntries(parentPath);
|
||||
var parentPathFiles = directoryService.GetFileSystemEntries(parentPath)
|
||||
.ToList();
|
||||
|
||||
var nameWithoutExtension = _fileSystem.GetFileNameWithoutExtension(item.Path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user