New: Auto map known legacy BaseUrls for non-Cardigann

This commit is contained in:
Qstick
2022-05-01 16:41:48 -05:00
parent 2820ef9375
commit 4002cb764b
9 changed files with 22 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ namespace Prowlarr.Api.V1.Indexers
public class IndexerResource : ProviderResource<IndexerResource>
{
public string[] IndexerUrls { get; set; }
public string[] LegacyUrls { get; set; }
public string DefinitionName { get; set; }
public string Description { get; set; }
public string Language { get; set; }
@@ -81,6 +82,7 @@ namespace Prowlarr.Api.V1.Indexers
resource.InfoLink = string.Format("https://wiki.servarr.com/prowlarr/supported-indexers#{0}", infoLinkName.ToLower().Replace(' ', '-'));
resource.AppProfileId = definition.AppProfileId;
resource.IndexerUrls = definition.IndexerUrls;
resource.LegacyUrls = definition.LegacyUrls;
resource.Description = definition.Description;
resource.Language = definition.Language;
resource.Encoding = definition.Encoding?.EncodingName ?? null;