mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Exclude BOM when writing meta.json plugin manifest
This commit is contained in:
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…
x
Reference in New Issue
Block a user