mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
cache the couchpotato wanted list, update it on an interval, and use it to determine if a movie has been queued already
This commit is contained in:
parent
e8fb28a024
commit
6ed7df2c21
13 changed files with 283 additions and 11 deletions
|
@ -14,7 +14,7 @@ namespace PlexRequests.Api.Models.Movie
|
|||
}
|
||||
public class Rating
|
||||
{
|
||||
public List<double> imdb { get; set; }
|
||||
public List<string> imdb { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
@ -23,15 +23,15 @@ namespace PlexRequests.Api.Models.Movie
|
|||
{
|
||||
public List<object> disc_art { get; set; }
|
||||
public List<string> poster { get; set; }
|
||||
public List<string> backdrop { get; set; }
|
||||
public List<object> extra_thumbs { get; set; }
|
||||
public List<string> poster_original { get; set; }
|
||||
public List<object> landscape { get; set; }
|
||||
public string[] actors { get; set; }
|
||||
public List<string> actors { get; set; }
|
||||
public List<string> backdrop_original { get; set; }
|
||||
public List<object> clear_art { get; set; }
|
||||
public List<object> logo { get; set; }
|
||||
public List<object> banner { get; set; }
|
||||
public List<string> backdrop { get; set; }
|
||||
public List<object> landscape { get; set; }
|
||||
public List<object> extra_fanart { get; set; }
|
||||
}
|
||||
|
||||
|
@ -42,16 +42,17 @@ namespace PlexRequests.Api.Models.Movie
|
|||
public int tmdb_id { get; set; }
|
||||
public string plot { get; set; }
|
||||
public string tagline { get; set; }
|
||||
public Release_Date release_date { get; set; }
|
||||
public int year { get; set; }
|
||||
public string original_title { get; set; }
|
||||
public string[] actor_roles { get; set; }
|
||||
public List<string> actor_roles { get; set; }
|
||||
public bool via_imdb { get; set; }
|
||||
public string mpaa { get; set; }
|
||||
public bool via_tmdb { get; set; }
|
||||
public Images images { get; set; }
|
||||
public List<string> directors { get; set; }
|
||||
public List<string> titles { get; set; }
|
||||
public string imdb { get; set; }
|
||||
public int year { get; set; }
|
||||
public Images images { get; set; }
|
||||
public string mpaa { get; set; }
|
||||
public bool via_tmdb { get; set; }
|
||||
public List<string> actors { get; set; }
|
||||
public List<string> writers { get; set; }
|
||||
public int runtime { get; set; }
|
||||
|
@ -59,6 +60,19 @@ namespace PlexRequests.Api.Models.Movie
|
|||
public string released { get; set; }
|
||||
}
|
||||
|
||||
public class Release_Date
|
||||
{
|
||||
public int dvd { get; set; }
|
||||
public int expires { get; set; }
|
||||
public int theater { get; set; }
|
||||
public bool bluray { get; set; }
|
||||
}
|
||||
|
||||
public class Files
|
||||
{
|
||||
public List<string> image_poster { get; set; }
|
||||
}
|
||||
|
||||
public class Identifiers
|
||||
{
|
||||
public string imdb { get; set; }
|
||||
|
@ -74,8 +88,11 @@ namespace PlexRequests.Api.Models.Movie
|
|||
public string _rev { get; set; }
|
||||
public string profile_id { get; set; }
|
||||
public string _id { get; set; }
|
||||
public List<object> tags { get; set; }
|
||||
public int last_edit { get; set; }
|
||||
public object category_id { get; set; }
|
||||
public string type { get; set; }
|
||||
public Files files { get; set; }
|
||||
public Identifiers identifiers { get; set; }
|
||||
}
|
||||
|
||||
|
|
12
PlexRequests.Api.Models/Movie/CouchPotatoMovies.cs
Normal file
12
PlexRequests.Api.Models/Movie/CouchPotatoMovies.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace PlexRequests.Api.Models.Movie
|
||||
{
|
||||
public class CouchPotatoMovies
|
||||
{
|
||||
public List<Movie> movies { get; set; }
|
||||
public int total { get; set; }
|
||||
public bool success { get; set; }
|
||||
public bool empty { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue