!wip started the searching process

This commit is contained in:
TidusJar 2018-08-23 14:55:22 +01:00
commit 9156673f88
20 changed files with 151 additions and 106 deletions

View file

@ -22,7 +22,7 @@ namespace Ombi.Api.Lidarr
public Task<List<LidarrProfile>> GetProfiles(string apiKey, string baseUrl)
{
var request = new Request($"{ApiVersion}/profile", baseUrl, HttpMethod.Get);
var request = new Request($"{ApiVersion}/qualityprofile", baseUrl, HttpMethod.Get);
AddHeaders(request, apiKey);
return Api.Request<List<LidarrProfile>>(request);

View file

@ -2,12 +2,6 @@
namespace Ombi.Api.Lidarr.Models
{
public class Cutoff
{
public int id { get; set; }
public string name { get; set; }
}
public class Quality
{
public int id { get; set; }
@ -23,9 +17,7 @@ namespace Ombi.Api.Lidarr.Models
public class LidarrProfile
{
public string name { get; set; }
public Cutoff cutoff { get; set; }
public List<Item> items { get; set; }
public string language { get; set; }
public int id { get; set; }
}
}

View file

@ -7,6 +7,6 @@
public int trackCount { get; set; }
public int totalTrackCount { get; set; }
public int sizeOnDisk { get; set; }
public int percentOfTracks { get; set; }
public decimal percentOfTracks { get; set; }
}
}