mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-13 01:56:55 -07:00
Fixed #1738
This commit is contained in:
parent
72815f496f
commit
7edc36406e
3 changed files with 13 additions and 6 deletions
|
@ -26,7 +26,7 @@ namespace Ombi.Api.Plex.Models
|
|||
public int addedAt { get; set; }
|
||||
public int updatedAt { get; set; }
|
||||
public Genre[] Genre { get; set; }
|
||||
public Role[] Role { get; set; }
|
||||
//public Role[] Role { get; set; }
|
||||
public string primaryExtraKey { get; set; }
|
||||
public int parentRatingKey { get; set; }
|
||||
public int grandparentRatingKey { get; set; }
|
||||
|
@ -43,8 +43,8 @@ namespace Ombi.Api.Plex.Models
|
|||
public string grandparentArt { get; set; }
|
||||
public string grandparentTheme { get; set; }
|
||||
public string chapterSource { get; set; }
|
||||
public Medium[] Media { get; set; }
|
||||
public Director[] Director { get; set; }
|
||||
public Writer[] Writer { get; set; }
|
||||
// public Medium[] Media { get; set; }
|
||||
// public Director[] Director { get; set; }
|
||||
// public Writer[] Writer { get; set; }
|
||||
}
|
||||
}
|
|
@ -13,7 +13,7 @@
|
|||
public float frameRate { get; set; }
|
||||
public bool hasScalingMatrix { get; set; }
|
||||
public int height { get; set; }
|
||||
public int level { get; set; }
|
||||
public string level { get; set; }
|
||||
public string profile { get; set; }
|
||||
public int refFrames { get; set; }
|
||||
public string scanType { get; set; }
|
||||
|
|
|
@ -264,7 +264,14 @@ namespace Ombi.Core.Senders
|
|||
private async Task<bool> SendToSickRage(ChildRequests model, SickRageSettings settings, string qualityId = null)
|
||||
{
|
||||
var tvdbid = model.ParentRequest.TvDbId;
|
||||
if (qualityId.HasValue())
{
var id = qualityId;
if (settings.Qualities.All(x => x.Value != id))
{
qualityId = settings.QualityProfile;
}
}
|
||||
if (qualityId.HasValue())
|
||||
{
|
||||
var id = qualityId;
|
||||
if (settings.Qualities.All(x => x.Value != id))
|
||||
{
|
||||
qualityId = settings.QualityProfile;
|
||||
}
|
||||
}
|
||||
// Check if the show exists
|
||||
var existingShow = await SickRageApi.GetShow(tvdbid, settings.ApiKey, settings.FullUri);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue