1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

Fixed: Sending Manual Interaction Required notifications for unknown movies

This commit is contained in:
Bogdan
2024-08-14 23:01:03 +03:00
parent b37cc42805
commit 1efe7db5f3
4 changed files with 111 additions and 81 deletions
@@ -237,6 +237,11 @@ namespace NzbDrone.Core.Notifications.Webhook
private WebhookMovie GetMovie(Movie movie)
{
if (movie == null)
{
return null;
}
_mediaCoverService.ConvertToLocalUrls(movie.Id, movie.MovieMetadata.Value.Images);
return new WebhookMovie(movie, GetTagLabels(movie));
@@ -244,6 +249,11 @@ namespace NzbDrone.Core.Notifications.Webhook
private List<string> GetTagLabels(Movie movie)
{
if (movie == null)
{
return null;
}
return _tagRepository.GetTags(movie.Tags)
.Select(t => t.Label)
.Where(l => l.IsNotNullOrWhiteSpace())