mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-07 10:14:14 -04:00
Merge pull request #5188 from cvium/fix_manifest_bom
Exclude BOM when writing meta.json plugin manifest (cherry picked from commit fba80cf6f9f465de79775bb5b8f12554814da550) Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
39b0d69786
commit
ebd4328f02
@ -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