aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv
diff options
context:
space:
mode:
authorDavid <daullmer@gmail.com>2020-12-24 10:31:51 +0100
committerDavid <daullmer@gmail.com>2020-12-24 10:31:51 +0100
commite835dfb27d4a25e2057047692fd58af439b15acc (patch)
tree68a346bbdfde7e4537b93f05895d63755813f3aa /Emby.Server.Implementations/LiveTv
parenta714008b596b108a44020f61ca384b30263df984 (diff)
Use sync string instead of file
Diffstat (limited to 'Emby.Server.Implementations/LiveTv')
-rw-r--r--Emby.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs
index 1b9abaa78e..bbe9b50dd5 100644
--- a/Emby.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs
+++ b/Emby.Server.Implementations/LiveTv/EmbyTV/ItemDataProvider.cs
@@ -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)