Exclude BOM when writing meta.json plugin manifest

pull/5188/head
cvium 4 years ago
parent 6c2eb5fc7e
commit 311b2f5012

@ -348,7 +348,7 @@ namespace Emby.Server.Implementations.Plugins
try try
{ {
var data = JsonSerializer.Serialize(manifest, _jsonOptions); var data = JsonSerializer.Serialize(manifest, _jsonOptions);
File.WriteAllText(Path.Combine(path, "meta.json"), data, Encoding.UTF8); File.WriteAllText(Path.Combine(path, "meta.json"), data);
return true; return true;
} }
#pragma warning disable CA1031 // Do not catch general exception types #pragma warning disable CA1031 // Do not catch general exception types

Loading…
Cancel
Save