Merge pull request #5188 from cvium/fix_manifest_bom

Exclude BOM when writing meta.json plugin manifest
pull/5189/head
Bond-009 4 years ago committed by GitHub
commit fba80cf6f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -348,7 +348,7 @@ namespace Emby.Server.Implementations.Plugins
try
{
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;
}
#pragma warning disable CA1031 // Do not catch general exception types

Loading…
Cancel
Save