Fixed: Metadata files not being created after rescan

This commit is contained in:
Mark McDowall 2020-03-10 23:57:41 -07:00
parent ae7f8926f8
commit e2ff089232
4 changed files with 13 additions and 7 deletions

View File

@ -264,7 +264,10 @@ namespace NzbDrone.Api.Series
public void Handle(MediaCoversUpdatedEvent message)
{
BroadcastResourceChange(ModelAction.Updated, message.Series.Id);
if (message.Updated)
{
BroadcastResourceChange(ModelAction.Updated, message.Series.Id);
}
}
}
}

View File

@ -205,10 +205,8 @@ namespace NzbDrone.Core.MediaCover
public void HandleAsync(SeriesUpdatedEvent message)
{
var updated = EnsureCovers(message.Series);
if (updated)
{
_eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Series));
}
_eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Series, updated));
}
public void HandleAsync(SeriesDeletedEvent message)

View File

@ -6,10 +6,12 @@ namespace NzbDrone.Core.MediaCover
public class MediaCoversUpdatedEvent : IEvent
{
public Series Series { get; set; }
public bool Updated { get; set; }
public MediaCoversUpdatedEvent(Series series)
public MediaCoversUpdatedEvent(Series series, bool updated)
{
Series = series;
Updated = updated;
}
}
}

View File

@ -280,7 +280,10 @@ namespace Sonarr.Api.V3.Series
public void Handle(MediaCoversUpdatedEvent message)
{
BroadcastResourceChange(ModelAction.Updated, message.Series.Id);
if (message.Updated)
{
BroadcastResourceChange(ModelAction.Updated, message.Series.Id);
}
}
}
}