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:
parent
5558136b51
commit
7db24cc4a0
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue