mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Improved the search UI and made it more consistant.
Finished the Netflix API Part #884
This commit is contained in:
parent
18b12f1a97
commit
88c0651b1e
9 changed files with 98 additions and 7 deletions
|
@ -26,6 +26,7 @@
|
|||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Newtonsoft.Json;
|
||||
using Ombi.Api.Interfaces;
|
||||
using Ombi.Api.Models.Netflix;
|
||||
|
@ -43,10 +44,10 @@ namespace Ombi.Api
|
|||
private IApiRequest Api { get; }
|
||||
private Uri Endpoint => new Uri("http://netflixroulette.net/api/api.php");
|
||||
|
||||
public NetflixMovieResult GetMovies(string movieName, string year = null)
|
||||
public NetflixMovieResult CheckNetflix(string title, string year = null)
|
||||
{
|
||||
var request = new RestRequest();
|
||||
request.AddQueryParameter("title", movieName);
|
||||
request.AddQueryParameter("title", title);
|
||||
if (!string.IsNullOrEmpty(year))
|
||||
{
|
||||
request.AddQueryParameter("year", year);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue