Fixed: Improve More Info links for Indexers, download clients, etc

This commit is contained in:
Mark McDowall 2021-08-03 19:13:08 -07:00
parent a7a3c546e5
commit 38feeefea3
2 changed files with 2 additions and 5 deletions

View File

@ -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)

View File

@ -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()}"
};
}