Fixed: Metadata files not being created after rescan
This commit is contained in:
parent
ae7f8926f8
commit
e2ff089232
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue