Fixed: Ignore case when resolving indexer by name in release push

(cherry picked from commit a90ab1a8fd50126d7f60eaa684eac1e0cd98e2b7)
pull/4837/head
Bogdan 7 months ago
parent 4752b54e26
commit 7d46360c34

@ -86,7 +86,8 @@ namespace Lidarr.Api.V1.Indexers
{
if (release.IndexerId == 0 && release.Indexer.IsNotNullOrWhiteSpace())
{
var indexer = _indexerFactory.All().FirstOrDefault(v => v.Name == release.Indexer);
var indexer = _indexerFactory.All().FirstOrDefault(v => v.Name.EqualsIgnoreCase(release.Indexer));
if (indexer != null)
{
release.IndexerId = indexer.Id;

Loading…
Cancel
Save