From 38feeefea3fcab94ee20b2b61571e786d2511636 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 3 Aug 2021 19:13:08 -0700 Subject: [PATCH] Fixed: Improve More Info links for Indexers, download clients, etc --- src/NzbDrone.Api/ProviderModuleBase.cs | 3 +-- src/Sonarr.Api.V3/ProviderResource.cs | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Api/ProviderModuleBase.cs b/src/NzbDrone.Api/ProviderModuleBase.cs index ceacb3cfe..22489e4f7 100644 --- a/src/NzbDrone.Api/ProviderModuleBase.cs +++ b/src/NzbDrone.Api/ProviderModuleBase.cs @@ -119,8 +119,7 @@ namespace NzbDrone.Api resource.Fields = SchemaBuilder.ToSchema(definition.Settings); - resource.InfoLink = string.Format("https://wiki.servarr.com/sonarr/supported#{0}", - definition.Implementation.ToLower()); + resource.InfoLink = $"https://wiki.servarr.com/sonarr/supported#{definition.Implementation.ToLower()}"; } protected virtual void MapToModel(TProviderDefinition definition, TProviderResource resource) diff --git a/src/Sonarr.Api.V3/ProviderResource.cs b/src/Sonarr.Api.V3/ProviderResource.cs index 69c62bae4..aac54e2a3 100644 --- a/src/Sonarr.Api.V3/ProviderResource.cs +++ b/src/Sonarr.Api.V3/ProviderResource.cs @@ -39,9 +39,7 @@ namespace Sonarr.Api.V3 Tags = definition.Tags, Fields = SchemaBuilder.ToSchema(definition.Settings), - InfoLink = string.Format("https://wiki.servarr.com/sonarr/supported#{0}", - typeof(TProviderResource).Name.Replace("Resource", "s"), - definition.Implementation.ToLower()) + InfoLink = $"https://wiki.servarr.com/sonarr/supported#{definition.Implementation.ToLower()}" }; }