mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-18 20:24:20 +01:00
Use sync string instead of file
This commit is contained in:
@@ -44,8 +44,8 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
||||
|
||||
try
|
||||
{
|
||||
using FileStream jsonStream = File.OpenRead(_dataPath);
|
||||
_items = JsonSerializer.DeserializeAsync<T[]>(jsonStream, JsonDefaults.GetOptions()).GetAwaiter().GetResult();
|
||||
var jsonString = File.ReadAllText(_dataPath);
|
||||
_items = JsonSerializer.Deserialize<T[]>(jsonString, JsonDefaults.GetOptions());
|
||||
return;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user