Fixed an issue where the default quality on Sickrage wouldn't work

pull/42/head
tidusjar 9 years ago
parent 9402d1409e
commit 6f8dc7c224

@ -64,7 +64,10 @@ namespace PlexRequests.Api
request.AddQueryParameter("tvdbid", tvdbId.ToString());
request.AddQueryParameter("status", status);
request.AddQueryParameter("future_status", futureStatus);
request.AddQueryParameter("initial", quality);
if (!quality.Equals("default", StringComparison.CurrentCultureIgnoreCase))
{
request.AddQueryParameter("initial", quality);
}
var obj = Api.Execute<SickRageTvAdd>(request, baseUrl);

@ -121,6 +121,12 @@ namespace PlexRequests.Core
result.Add(id);
}
foreach (var source in requestedModels.Where(x => x.Type== RequestType.Movie))
{
var id = jsonRepo.AddRequest(source);
result.Add(id);
}
if (result.Any(x => x == -1))
{

Loading…
Cancel
Save