New: Alternative Site Links

This commit is contained in:
Qstick
2021-06-13 23:09:42 -04:00
parent 1fb693d066
commit 38c09277d9
107 changed files with 587 additions and 558 deletions

View File

@@ -14,7 +14,7 @@ namespace Prowlarr.Api.V1.Indexers
{
public class IndexerResource : ProviderResource<IndexerResource>
{
public string BaseUrl { get; set; }
public string[] IndexerUrls { get; set; }
public string Description { get; set; }
public string Language { get; set; }
public string Encoding { get; set; }
@@ -74,7 +74,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.BaseUrl = definition.BaseUrl;
resource.IndexerUrls = definition.IndexerUrls;
resource.Description = definition.Description;
resource.Language = definition.Language;
resource.Encoding = definition.Encoding?.EncodingName ?? null;
@@ -130,7 +130,7 @@ namespace Prowlarr.Api.V1.Indexers
definition.AppProfileId = resource.AppProfileId;
definition.Enable = resource.Enable;
definition.Redirect = resource.Redirect;
definition.BaseUrl = resource.BaseUrl;
definition.IndexerUrls = resource.IndexerUrls;
definition.Priority = resource.Priority;
definition.Privacy = resource.Privacy;
definition.Added = resource.Added;