Fixed: Metadata files not being created after rescan

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/2/head
Qstick 5 years ago
parent 5128481b23
commit 363be4ca34

@ -186,8 +186,11 @@ namespace NzbDrone.Api.Movies
}
public void Handle(MediaCoversUpdatedEvent message)
{
if (message.Updated)
{
BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
}
}
}
}

@ -191,10 +191,8 @@ namespace NzbDrone.Core.MediaCover
public void HandleAsync(MovieUpdatedEvent message)
{
var updated = EnsureCovers(message.Movie);
if (updated)
{
_eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Movie));
}
_eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Movie, updated));
}
public void HandleAsync(MovieDeletedEvent message)

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

@ -218,8 +218,11 @@ namespace Radarr.Api.V3.Movies
}
public void Handle(MediaCoversUpdatedEvent message)
{
if (message.Updated)
{
BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
}
}
}
}

Loading…
Cancel
Save