mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
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:
parent
16c94f2414
commit
b2417d8477
10 changed files with 176 additions and 42 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue