mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Indexer and Search page work
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user