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.Fields = SchemaBuilder.ToSchema(definition.Settings);
resource.InfoLink = string.Format("https://wiki.servarr.com/sonarr/supported#{0}", resource.InfoLink = $"https://wiki.servarr.com/sonarr/supported#{definition.Implementation.ToLower()}";
definition.Implementation.ToLower());
} }
protected virtual void MapToModel(TProviderDefinition definition, TProviderResource resource) protected virtual void MapToModel(TProviderDefinition definition, TProviderResource resource)

View File

@ -39,9 +39,7 @@ namespace Sonarr.Api.V3
Tags = definition.Tags, Tags = definition.Tags,
Fields = SchemaBuilder.ToSchema(definition.Settings), Fields = SchemaBuilder.ToSchema(definition.Settings),
InfoLink = string.Format("https://wiki.servarr.com/sonarr/supported#{0}", InfoLink = $"https://wiki.servarr.com/sonarr/supported#{definition.Implementation.ToLower()}"
typeof(TProviderResource).Name.Replace("Resource", "s"),
definition.Implementation.ToLower())
}; };
} }