From 3bdaf640ec52e38e64da25fce07631034538c74a Mon Sep 17 00:00:00 2001 From: Patrick Barron Date: Thu, 8 Feb 2024 15:28:36 -0500 Subject: [PATCH] Remove unnecessary JSON roundtrip in SaveListingProvider --- src/Jellyfin.LiveTv/Listings/ListingsManager.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Jellyfin.LiveTv/Listings/ListingsManager.cs b/src/Jellyfin.LiveTv/Listings/ListingsManager.cs index 9b239f7e4..87f47611e 100644 --- a/src/Jellyfin.LiveTv/Listings/ListingsManager.cs +++ b/src/Jellyfin.LiveTv/Listings/ListingsManager.cs @@ -3,7 +3,6 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Text.Json; using System.Threading; using System.Threading.Tasks; using Jellyfin.LiveTv.Configuration; @@ -56,10 +55,6 @@ public class ListingsManager : IListingsManager { ArgumentNullException.ThrowIfNull(info); - // Hack to make the object a pure ListingsProviderInfo instead of an AddListingProvider - // ServerConfiguration.SaveConfiguration crashes during xml serialization for AddListingProvider - info = JsonSerializer.Deserialize(JsonSerializer.SerializeToUtf8Bytes(info))!; - var provider = GetProvider(info.Type); await provider.Validate(info, validateLogin, validateListings).ConfigureAwait(false);