mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Added the code to lookup the old requests and refresh them with new information from TVMaze
This commit is contained in:
parent
a2d2121afe
commit
4136116555
3 changed files with 44 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue