diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-06-18 03:13:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-18 03:13:06 -0400 |
| commit | 076e7f7bd15d89ccf6e79226a8fe0b1b29deff55 (patch) | |
| tree | 9fc42f1d9cc0f962a3a0424bb70298ba7855340f /MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs | |
| parent | 82e575a0be5ebcc636a78acd25e701b9d50c2640 (diff) | |
| parent | ce47f6338950853110ecc1d6bbd312b532b2ed8a (diff) | |
Merge pull request #2712 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs')
| -rw-r--r-- | MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs index f8f95684d..247c5274f 100644 --- a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs +++ b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs @@ -198,7 +198,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles { var bytes = await GetBytes(path, protocol, cancellationToken).ConfigureAwait(false); - var charset = _textEncoding.GetDetectedEncodingName(bytes, language); + var charset = _textEncoding.GetDetectedEncodingName(bytes, language, true); _logger.Debug("charset {0} detected for {1}", charset ?? "null", path); if (!string.IsNullOrEmpty(charset)) @@ -705,7 +705,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles { var bytes = await GetBytes(path, protocol, cancellationToken).ConfigureAwait(false); - var charset = _textEncoding.GetDetectedEncodingName(bytes, language); + var charset = _textEncoding.GetDetectedEncodingName(bytes, language, true); _logger.Debug("charset {0} detected for {1}", charset ?? "null", path); |
