mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Implimented the new TV show Provider (needed for Sonarr TheTvDB)
This commit is contained in:
parent
a8b6137ef8
commit
ff81e67ab0
8 changed files with 299 additions and 11 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using TMDbLib.Client;
|
||||
|
@ -23,9 +24,9 @@ namespace RequestPlex.Api
|
|||
return results.Results;
|
||||
}
|
||||
|
||||
[Obsolete("Should use TheTvDbApi for TV")]
|
||||
public async Task<List<SearchTv>> SearchTv(string searchTerm)
|
||||
{
|
||||
|
||||
var results = await Client.SearchTvShow(searchTerm);
|
||||
return results.Results;
|
||||
}
|
||||
|
@ -47,6 +48,7 @@ namespace RequestPlex.Api
|
|||
return movies;
|
||||
}
|
||||
|
||||
[Obsolete("Should use TheTvDbApi for TV")]
|
||||
public async Task<TvShow> GetTvShowInformation(int tmdbId)
|
||||
{
|
||||
var show = await Client.GetTvShow(tmdbId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue