mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-21 22:25:03 -04:00
New: App Sync Profiles
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user