Unwrapped OpenRead and CopyFile

This commit is contained in:
Erwin de Haan
2019-01-26 22:31:59 +01:00
parent d7c6d16250
commit a430568082
25 changed files with 35 additions and 34 deletions

View File

@@ -210,7 +210,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
}
}
return _fileSystem.OpenRead(path);
return File.OpenRead(path);
}
private async Task<SubtitleInfo> GetReadableFile(
@@ -672,7 +672,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
string text;
Encoding encoding;
using (var fileStream = _fileSystem.OpenRead(file))
using (var fileStream = File.OpenRead(file))
using (var reader = new StreamReader(fileStream, true))
{
encoding = reader.CurrentEncoding;