mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 00:12:24 +00:00
3.2.20.5
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user