mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-04 10:34:59 +02:00
Fixed: Adding series with unknown items in queue
This commit is contained in:
parent
e1b937e8d5
commit
7fccf590a8
@ -25,6 +25,11 @@ public RemoteEpisodeAggregationService(IEnumerable<IAggregateRemoteEpisode> augm
|
|||||||
|
|
||||||
public RemoteEpisode Augment(RemoteEpisode remoteEpisode)
|
public RemoteEpisode Augment(RemoteEpisode remoteEpisode)
|
||||||
{
|
{
|
||||||
|
if (remoteEpisode == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var augmenter in _augmenters)
|
foreach (var augmenter in _augmenters)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -58,12 +58,12 @@ private void HandleScanEvents(Series series)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (series.AddOptions.SearchForMissingEpisodes)
|
if (addOptions.SearchForMissingEpisodes)
|
||||||
{
|
{
|
||||||
_commandQueueManager.Push(new MissingEpisodeSearchCommand(series.Id));
|
_commandQueueManager.Push(new MissingEpisodeSearchCommand(series.Id));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (series.AddOptions.SearchForCutoffUnmetEpisodes)
|
if (addOptions.SearchForCutoffUnmetEpisodes)
|
||||||
{
|
{
|
||||||
_commandQueueManager.Push(new CutoffUnmetEpisodeSearchCommand(series.Id));
|
_commandQueueManager.Push(new CutoffUnmetEpisodeSearchCommand(series.Id));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user