mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
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:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user