mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	fix for m3u8 playlists
This commit is contained in:
		
							parent
							
								
									9b41a3d35c
								
							
						
					
					
						commit
						e73d65f20d
					
				@ -10,6 +10,7 @@ using System.Collections.Generic;
 | 
			
		||||
using System.Globalization;
 | 
			
		||||
using System.IO;
 | 
			
		||||
using System.Net;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
using MimeTypes = MediaBrowser.Common.Net.MimeTypes;
 | 
			
		||||
 | 
			
		||||
@ -73,10 +74,19 @@ namespace MediaBrowser.Server.Implementations.HttpServer
 | 
			
		||||
                    result = new StreamWriter(bytes, contentType, _logger);
 | 
			
		||||
                }
 | 
			
		||||
                else
 | 
			
		||||
                {
 | 
			
		||||
                    var text = content as string;
 | 
			
		||||
 | 
			
		||||
                    if (text != null)
 | 
			
		||||
                    {
 | 
			
		||||
                        result = new StreamWriter(Encoding.UTF8.GetBytes(text), contentType, _logger);
 | 
			
		||||
                    }
 | 
			
		||||
                    else
 | 
			
		||||
                    {
 | 
			
		||||
                        result = new HttpResult(content, contentType);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (responseHeaders != null)
 | 
			
		||||
            {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user