core: allow renaming & merging of trackers with config (part 1 #8355) (#8608)

core: allow renaming & merging of trackers with config (part 1 #8355) (#8608)

* rename site field to id in yaml indexers
* add id field in c# indexers
* use id field instead of class name in c#
This commit is contained in:
Diego Heras
2020-05-11 21:59:28 +02:00
committed by GitHub
parent 121b7866a2
commit 6156ad0cd5
535 changed files with 1160 additions and 1006 deletions

View File

@@ -82,7 +82,7 @@ namespace Jackett.Common.Services
{
if (idx == null)
continue;
indexers.Add(idx.ID, idx);
indexers.Add(idx.Id, idx);
configService.Load(idx);
}
}
@@ -137,13 +137,13 @@ namespace Jackett.Common.Services
foreach (var indexer in cardigannIndexers)
{
if (indexers.ContainsKey(indexer.ID))
if (indexers.ContainsKey(indexer.Id))
{
logger.Debug(string.Format("Ignoring definition ID={0}: Indexer already exists", indexer.ID));
logger.Debug(string.Format("Ignoring definition ID={0}: Indexer already exists", indexer.Id));
continue;
}
indexers.Add(indexer.ID, indexer);
indexers.Add(indexer.Id, indexer);
}
logger.Info("Cardigann definitions loaded: " + string.Join(", ", indexers.Keys));
}