mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 07:45:26 +03:00
fix for m3u8 playlists
This commit is contained in:
@@ -10,6 +10,7 @@ using System.Collections.Generic;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using MimeTypes = MediaBrowser.Common.Net.MimeTypes;
|
using MimeTypes = MediaBrowser.Common.Net.MimeTypes;
|
||||||
|
|
||||||
@@ -74,7 +75,16 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
result = new HttpResult(content, contentType);
|
var text = content as string;
|
||||||
|
|
||||||
|
if (text != null)
|
||||||
|
{
|
||||||
|
result = new StreamWriter(Encoding.UTF8.GetBytes(text), contentType, _logger);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = new HttpResult(content, contentType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user