New: App Sync Profiles

This commit is contained in:
Qstick
2021-05-18 00:17:04 -04:00
parent 29c4849bef
commit f64f8e915f
51 changed files with 1509 additions and 19 deletions
@@ -25,7 +25,7 @@ namespace Prowlarr.Api.V1.Indexers
[HttpPut]
public IActionResult SaveAll(IndexerEditorResource resource)
{
var indexersToUpdate = _indexerService.All().Where(x => resource.IndexerIds.Contains(x.Id));
var indexersToUpdate = _indexerService.AllProviders(false).Select(x => (IndexerDefinition)x.Definition).Where(d => resource.IndexerIds.Contains(d.Id));
foreach (var indexer in indexersToUpdate)
{
@@ -34,6 +34,11 @@ namespace Prowlarr.Api.V1.Indexers
indexer.Enable = bool.Parse(resource.Enable);
}
if (resource.AppProfileId.HasValue)
{
indexer.AppProfileId = resource.AppProfileId.Value;
}
if (resource.Tags != null)
{
var newTags = resource.Tags;