Fixed: Improve More Info links for Indexers, download clients, etc
This commit is contained in:
parent
a7a3c546e5
commit
38feeefea3
|
@ -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)
|
||||||
|
|
|
@ -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())
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue