Stop path substitution in SubtitleEncoder

This fixes jellyfin/jellyfin#1446. I am not an expert in this section of
code, but I cannot think of a need to do path substitution during
subtitle encoding.
This commit is contained in:
Tristan McCann 2019-06-11 21:34:23 -04:00
parent e3a3aebbf6
commit 5c1fbfca03
1 changed files with 1 additions and 2 deletions

View File

@ -126,8 +126,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
throw new ArgumentNullException(nameof(mediaSourceId)); throw new ArgumentNullException(nameof(mediaSourceId));
} }
// TODO network path substition useful ? var mediaSources = await _mediaSourceManager.GetPlayackMediaSources(item, null, true, false, cancellationToken).ConfigureAwait(false);
var mediaSources = await _mediaSourceManager.GetPlayackMediaSources(item, null, true, true, cancellationToken).ConfigureAwait(false);
var mediaSource = mediaSources var mediaSource = mediaSources
.First(i => string.Equals(i.Id, mediaSourceId, StringComparison.OrdinalIgnoreCase)); .First(i => string.Equals(i.Id, mediaSourceId, StringComparison.OrdinalIgnoreCase));