mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Started switching the TV over to the new provider (TheTVDB). Currently TV search is partially broken. It will search but we are not mapping all of the details
This commit is contained in:
parent
ff81e67ab0
commit
9ce08902d7
15 changed files with 173 additions and 54 deletions
|
@ -43,7 +43,7 @@ namespace RequestPlex.Core
|
|||
{
|
||||
var model = new RequestedModel
|
||||
{
|
||||
Tmdbid = tmdbid,
|
||||
ProviderId = tmdbid,
|
||||
Type = type
|
||||
};
|
||||
|
||||
|
@ -52,12 +52,12 @@ namespace RequestPlex.Core
|
|||
|
||||
public bool CheckRequest(int tmdbid)
|
||||
{
|
||||
return Repo.GetAll().Any(x => x.Tmdbid == tmdbid);
|
||||
return Repo.GetAll().Any(x => x.ProviderId == tmdbid);
|
||||
}
|
||||
|
||||
public void DeleteRequest(int tmdbId)
|
||||
{
|
||||
var entity = Repo.GetAll().FirstOrDefault(x => x.Tmdbid == tmdbId);
|
||||
var entity = Repo.GetAll().FirstOrDefault(x => x.ProviderId == tmdbId);
|
||||
Repo.Delete(entity);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue