mirror of
https://github.com/Radarr/Radarr
synced 2025-02-24 07:10:57 +00:00
Fixed: Sending Manual Interaction Required notifications to Discord for unknown movies
This commit is contained in:
parent
410870d21e
commit
0e25b2708c
1 changed files with 10 additions and 4 deletions
|
@ -646,13 +646,19 @@ private string GetTitle(Movie movie)
|
||||||
return title.Length > 256 ? $"{title.AsSpan(0, 253)}..." : title;
|
return title.Length > 256 ? $"{title.AsSpan(0, 253)}..." : title;
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerable<string> GetTagLabels(Movie movie)
|
private List<string> GetTagLabels(Movie movie)
|
||||||
{
|
{
|
||||||
return movie.Tags?
|
if (movie == null)
|
||||||
.Select(t => _tagRepository.Find(t)?.Label)
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return _tagRepository.GetTags(movie.Tags)
|
||||||
|
.Select(t => t.Label)
|
||||||
.Where(l => l.IsNotNullOrWhiteSpace())
|
.Where(l => l.IsNotNullOrWhiteSpace())
|
||||||
.OrderBy(l => l)
|
.OrderBy(l => l)
|
||||||
.Take(5);
|
.Take(5)
|
||||||
|
.ToList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue