Added the code to lookup the old requests and refresh them with new information from TVMaze

This commit is contained in:
tidusjar 2016-03-18 23:45:31 +00:00
commit 4136116555
3 changed files with 44 additions and 2 deletions

View file

@ -69,5 +69,18 @@ namespace PlexRequests.Api
return Api.Execute<TvMazeShow>(request, new Uri(Uri));
}
public TvMazeShow ShowLookupByTheTvDbId(int theTvDbId)
{
var request = new RestRequest
{
Method = Method.GET,
Resource = "lookup/shows?thetvdb={id}"
};
request.AddUrlSegment("id", theTvDbId.ToString());
request.AddHeader("Content-Type", "application/json");
return Api.Execute<TvMazeShow>(request, new Uri(Uri));
}
}
}