Merge pull request #1457 from TrisMcC/fix-path-substitution-1446

Stop path substitution in SubtitleEncoder - Fix #1446
This commit is contained in:
Bond-009 2019-06-13 15:18:01 +02:00 committed by GitHub
commit 8fd47dd658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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));