mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Added Sonarr v3 #2359
This commit is contained in:
parent
a69637a3fb
commit
c1e2cad252
2 changed files with 9 additions and 6 deletions
|
@ -27,6 +27,9 @@ namespace Ombi.Api.Sonarr.Models
|
|||
public int id { get; set; }
|
||||
public List<SonarrImage> images { get; set; }
|
||||
|
||||
// V3 Property
|
||||
public int languageProfileId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This is for us
|
||||
/// </summary>
|
||||
|
|
|
@ -180,12 +180,7 @@ namespace Ombi.Core.Senders
|
|||
|
||||
// Are we using v3 sonarr?
|
||||
var sonarrV3 = s.V3;
|
||||
var languageProfileId = 0;
|
||||
if (sonarrV3)
|
||||
{
|
||||
languageProfileId = s.LanguageProfile;
|
||||
}
|
||||
|
||||
var languageProfileId = s.LanguageProfile;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -216,6 +211,11 @@ namespace Ombi.Core.Senders
|
|||
}
|
||||
};
|
||||
|
||||
if (sonarrV3)
|
||||
{
|
||||
newSeries.languageProfileId = languageProfileId;
|
||||
}
|
||||
|
||||
// Montitor the correct seasons,
|
||||
// If we have that season in the model then it's monitored!
|
||||
var seasonsToAdd = GetSeasonsToCreate(model);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue