From 6a51f081ac93b3b585f5d08c9d0dd51fb120ad90 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 24 Dec 2019 17:37:04 +0100 Subject: [PATCH] Use Newtonsoft in TinyTwitter --- src/NzbDrone.Core/TinyTwitter.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/TinyTwitter.cs b/src/NzbDrone.Core/TinyTwitter.cs index 508783b6b..110768d4f 100644 --- a/src/NzbDrone.Core/TinyTwitter.cs +++ b/src/NzbDrone.Core/TinyTwitter.cs @@ -1,4 +1,5 @@ -using System; +using Newtonsoft.Json; +using System; using System.Collections.Generic; using System.Globalization; using System.IO; @@ -7,7 +8,6 @@ using System.Net; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; -using System.Web.Script.Serialization; namespace TinyTwitter { @@ -93,9 +93,7 @@ namespace TinyTwitter var responseContent = builder.Execute(); - var serializer = new JavaScriptSerializer(); - - var tweets = (object[])serializer.DeserializeObject(responseContent); + var tweets = (object[])JsonConvert.DeserializeObject(responseContent); return tweets.Cast>().Select(tweet => {