mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 07:22:35 +01:00
Fixed: Metadata files not being created after rescan
This commit is contained in:
parent
ae7f8926f8
commit
e2ff089232
@ -263,8 +263,11 @@ namespace NzbDrone.Api.Series
|
||||
}
|
||||
|
||||
public void Handle(MediaCoversUpdatedEvent message)
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -279,8 +279,11 @@ namespace Sonarr.Api.V3.Series
|
||||
}
|
||||
|
||||
public void Handle(MediaCoversUpdatedEvent message)
|
||||
{
|
||||
if (message.Updated)
|
||||
{
|
||||
BroadcastResourceChange(ModelAction.Updated, message.Series.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user