1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-24 07:10:44 +00:00

OmdbResolver: fix encoding warning

This commit is contained in:
kaso17 2018-02-02 16:56:30 +01:00
parent 5558136b51
commit 7db24cc4a0

View file

@ -8,6 +8,7 @@ using Jackett.Utils.Clients;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Jackett.Services.Interfaces;
using System.Text;
namespace Jackett.Services
{
@ -34,6 +35,7 @@ namespace Jackett.Services
imdbId = "tt" + imdbId;
var request = new WebRequest("http://omdbapi.com/?apikey=" + apiKey + "&i=" + imdbId);
request.Encoding = Encoding.UTF8;
var result = await WebClient.GetString(request);
var movie = JsonConvert.DeserializeObject<Movie>(result.Content);