diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-26 22:31:59 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-28 22:09:58 +0100 |
| commit | a430568082b55f2f989924c59e0729808b39226c (patch) | |
| tree | 6716feb968102b831d4bf8924359b2f68a2c53cb /MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs | |
| parent | d7c6d1625043fb69a90e7ccb24fc31a912c8a2d3 (diff) | |
Unwrapped `OpenRead` and `CopyFile`
Diffstat (limited to 'MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs')
| -rw-r--r-- | MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs b/MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs index 5e9824ed1..afc760dd4 100644 --- a/MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs +++ b/MediaBrowser.Providers/MediaInfo/FFProbeProvider.cs @@ -1,4 +1,5 @@ using System; +using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -196,7 +197,7 @@ namespace MediaBrowser.Providers.MediaInfo private void FetchShortcutInfo(BaseItem item) { - item.ShortcutPath = _fileSystem.ReadAllLines(item.Path) + item.ShortcutPath = File.ReadAllLines(item.Path) .Select(NormalizeStrmLine) .FirstOrDefault(i => !string.IsNullOrWhiteSpace(i) && !i.StartsWith("#", StringComparison.OrdinalIgnoreCase)); } |
