Indexer and Search page work

This commit is contained in:
Qstick
2020-10-20 02:08:45 -04:00
parent 5c39ef2f76
commit f290afa68c
123 changed files with 3012 additions and 3274 deletions

View File

@@ -1,3 +1,4 @@
using System;
using NzbDrone.Core.Indexers;
namespace Prowlarr.Api.V1.Indexers
@@ -9,8 +10,14 @@ namespace Prowlarr.Api.V1.Indexers
public bool EnableInteractiveSearch { get; set; }
public bool SupportsRss { get; set; }
public bool SupportsSearch { get; set; }
public bool SupportsMusic { get; set; }
public bool SupportsTv { get; set; }
public bool SupportsMovies { get; set; }
public bool SupportsBooks { get; set; }
public DownloadProtocol Protocol { get; set; }
public IndexerPrivacy Privacy { get; set; }
public int Priority { get; set; }
public DateTime Added { get; set; }
}
public class IndexerResourceMapper : ProviderResourceMapper<IndexerResource, IndexerDefinition>
@@ -29,8 +36,14 @@ namespace Prowlarr.Api.V1.Indexers
resource.EnableInteractiveSearch = definition.EnableInteractiveSearch;
resource.SupportsRss = definition.SupportsRss;
resource.SupportsSearch = definition.SupportsSearch;
resource.SupportsBooks = definition.SupportsBooks;
resource.SupportsMovies = definition.SupportsMovies;
resource.SupportsMusic = definition.SupportsMusic;
resource.SupportsTv = definition.SupportsTv;
resource.Protocol = definition.Protocol;
resource.Privacy = definition.Privacy;
resource.Priority = definition.Priority;
resource.Added = definition.Added;
return resource;
}
@@ -48,6 +61,8 @@ namespace Prowlarr.Api.V1.Indexers
definition.EnableAutomaticSearch = resource.EnableAutomaticSearch;
definition.EnableInteractiveSearch = resource.EnableInteractiveSearch;
definition.Priority = resource.Priority;
definition.Privacy = resource.Privacy;
definition.Added = resource.Added;
return definition;
}