mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
fix video probing
This commit is contained in:
@@ -51,8 +51,10 @@ namespace XmlRpcHandler
|
||||
XmlWriterSettings sett = new XmlWriterSettings();
|
||||
sett.Indent = true;
|
||||
|
||||
var requestXmlPath = Path.Combine(Path.GetTempPath(), "request.xml");
|
||||
|
||||
sett.Encoding = Encoding.UTF8;
|
||||
FileStream str = new FileStream(Path.GetTempPath() + "\\request.xml", FileMode.Create, FileAccess.Write);
|
||||
FileStream str = new FileStream(requestXmlPath, FileMode.Create, FileAccess.Write);
|
||||
|
||||
XmlWriter XMLwrt = XmlWriter.Create(str, sett);
|
||||
// Let's write the methods
|
||||
@@ -88,7 +90,7 @@ namespace XmlRpcHandler
|
||||
XMLwrt.Flush();
|
||||
XMLwrt.Close();
|
||||
str.Close();
|
||||
string requestContent = File.ReadAllText(Path.GetTempPath() + "\\request.xml");
|
||||
string requestContent = File.ReadAllText(requestXmlPath);
|
||||
return Encoding.UTF8.GetBytes(requestContent);
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user