mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
update file system methods
This commit is contained in:
parent
76875e17ee
commit
f3e9bbed23
15 changed files with 42 additions and 29 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue