From 682afc2c75a16efdcedd21c6f16b31e1f9510c45 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 20 Aug 2021 22:50:59 -0400 Subject: [PATCH] Fixed: (Rarbg) Blank baseUrl drop-down (#443) * Fixed: (Rarbg) Blank baseUrl drop-down * fixup! Using missing --- src/NzbDrone.Core/Indexers/Definitions/Rarbg/Rarbg.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Rarbg/Rarbg.cs b/src/NzbDrone.Core/Indexers/Definitions/Rarbg/Rarbg.cs index 5ba132468..1ef5c112d 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Rarbg/Rarbg.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Rarbg/Rarbg.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Linq; using NLog; using NzbDrone.Common.Extensions; using NzbDrone.Common.Http; @@ -167,6 +168,15 @@ namespace NzbDrone.Core.Indexers.Rarbg captchaToken = cfClearanceCookie }; } + else if (action == "getUrls") + { + var links = IndexerUrls; + + return new + { + options = links.Select(d => new { Value = d, Name = d }) + }; + } return new { }; }