mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-19 07:23:05 +03:00
Tweaked plugin downloading a bit
This commit is contained in:
parent
7f8a477278
commit
fc735e9187
@@ -39,6 +39,14 @@ namespace MediaBrowser.Common.Serialization
|
||||
}
|
||||
}
|
||||
|
||||
public static void SerializeToFile(object obj, string file)
|
||||
{
|
||||
using (FileStream stream = new FileStream(file, FileMode.Create))
|
||||
{
|
||||
ServiceStack.Text.XmlSerializer.SerializeToStream(obj, stream);
|
||||
}
|
||||
}
|
||||
|
||||
public static object DeserializeFromFile(Type type, string file)
|
||||
{
|
||||
using (Stream stream = File.OpenRead(file))
|
||||
|
||||
Reference in New Issue
Block a user