mirror of
https://github.com/Radarr/Radarr
synced 2025-12-07 17:03:36 +01:00
Fixed: Metadata files not being created after rescan
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
5128481b23
commit
363be4ca34
4 changed files with 14 additions and 7 deletions
|
|
@ -187,7 +187,10 @@ public void Handle(MovieRenamedEvent message)
|
|||
|
||||
public void Handle(MediaCoversUpdatedEvent message)
|
||||
{
|
||||
BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
|
||||
if (message.Updated)
|
||||
{
|
||||
BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,10 +191,8 @@ private void EnsureResizedCovers(Movie movie, MediaCover cover, bool forceResize
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -219,7 +219,10 @@ public void Handle(MovieRenamedEvent message)
|
|||
|
||||
public void Handle(MediaCoversUpdatedEvent message)
|
||||
{
|
||||
BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
|
||||
if (message.Updated)
|
||||
{
|
||||
BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue