mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
OmdbResolver: fix encoding warning
This commit is contained in:
@@ -8,6 +8,7 @@ using Jackett.Utils.Clients;
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using Jackett.Services.Interfaces;
|
using Jackett.Services.Interfaces;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
namespace Jackett.Services
|
namespace Jackett.Services
|
||||||
{
|
{
|
||||||
@@ -34,6 +35,7 @@ namespace Jackett.Services
|
|||||||
imdbId = "tt" + imdbId;
|
imdbId = "tt" + imdbId;
|
||||||
|
|
||||||
var request = new WebRequest("http://omdbapi.com/?apikey=" + apiKey + "&i=" + imdbId);
|
var request = new WebRequest("http://omdbapi.com/?apikey=" + apiKey + "&i=" + imdbId);
|
||||||
|
request.Encoding = Encoding.UTF8;
|
||||||
var result = await WebClient.GetString(request);
|
var result = await WebClient.GetString(request);
|
||||||
var movie = JsonConvert.DeserializeObject<Movie>(result.Content);
|
var movie = JsonConvert.DeserializeObject<Movie>(result.Content);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user