mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
update file system methods
This commit is contained in:
@@ -134,7 +134,7 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
||||
|
||||
var protocol = MediaProtocol.File;
|
||||
|
||||
var inputPath = MediaEncoderHelpers.GetInputArgument(video.Path, protocol, null, video.PlayableStreamFileNames);
|
||||
var inputPath = MediaEncoderHelpers.GetInputArgument(_fileSystem, video.Path, protocol, null, video.PlayableStreamFileNames);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -194,7 +194,7 @@ namespace MediaBrowser.Server.Implementations.MediaEncoder
|
||||
|
||||
try
|
||||
{
|
||||
return Directory.EnumerateFiles(path)
|
||||
return _fileSystem.GetFilePaths(path)
|
||||
.ToList();
|
||||
}
|
||||
catch (DirectoryNotFoundException)
|
||||
|
||||
Reference in New Issue
Block a user