Added a switch to use the new search or not, just in case people do not like it.

added a migration to turn on the new search.
This commit is contained in:
Jamie.Rees 2017-01-27 08:42:44 +00:00
commit b2417d8477
10 changed files with 176 additions and 42 deletions

View file

@ -28,6 +28,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using NLog;
using NLog.Fluent;
using Ombi.Api.Models.Movie;
using RestSharp;
@ -50,6 +51,7 @@ namespace Ombi.Api
private ApiRequest Api { get; }
public TMDbClient Client { get; set; }
private const string BaseUrl = "https://api.themoviedb.org/3/";
private static Logger Log = LogManager.GetCurrentClassLogger();
public async Task<List<SearchMovie>> SearchMovie(string searchTerm)
{
var results = await Client.SearchMovie(searchTerm);