|  | @@ -179,7 +179,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
 | 
	
		
			
				|  |  |                          _logger.LogDebug("charset {CharSet} detected for {Path}", result.EncodingName, fileInfo.Path);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                          using var reader = new StreamReader(stream, result.Encoding);
 | 
	
		
			
				|  |  | -                        var text = await reader.ReadToEndAsync().ConfigureAwait(false);
 | 
	
		
			
				|  |  | +                        var text = await reader.ReadToEndAsync(cancellationToken).ConfigureAwait(false);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                          return new MemoryStream(Encoding.UTF8.GetBytes(text));
 | 
	
		
			
				|  |  |                      }
 | 
	
	
		
			
				|  | @@ -650,7 +650,7 @@ namespace MediaBrowser.MediaEncoding.Subtitles
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  encoding = reader.CurrentEncoding;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                text = await reader.ReadToEndAsync().ConfigureAwait(false);
 | 
	
		
			
				|  |  | +                text = await reader.ReadToEndAsync(cancellationToken).ConfigureAwait(false);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              var newText = text.Replace(",Arial,", ",Arial Unicode MS,", StringComparison.Ordinal);
 |