1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-17 10:45:49 +02:00

Use Newtonsoft in TinyTwitter

This commit is contained in:
Taloth Saldono 2019-12-24 17:37:04 +01:00
parent 5536f9925a
commit 6a51f081ac

View File

@ -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.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Web.Script.Serialization;
namespace TinyTwitter
{
@ -93,9 +93,7 @@ private IEnumerable<Tweet> GetTimeline(string url, long? sinceId, long? maxId, i
var responseContent = builder.Execute();
var serializer = new JavaScriptSerializer();
var tweets = (object[])serializer.DeserializeObject(responseContent);
var tweets = (object[])JsonConvert.DeserializeObject(responseContent);
return tweets.Cast<Dictionary<string, object>>().Select(tweet =>
{