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

@@ -19,12 +19,12 @@ namespace Jackett.Common.Services
{
lock (cache)
{
var trackerCache = cache.FirstOrDefault(c => c.TrackerId == indexer.ID);
var trackerCache = cache.FirstOrDefault(c => c.TrackerId == indexer.Id);
if (trackerCache == null)
{
trackerCache = new TrackerCache
{
TrackerId = indexer.ID,
TrackerId = indexer.Id,
TrackerName = indexer.DisplayName
};
cache.Add(trackerCache);
@@ -58,7 +58,7 @@ namespace Jackett.Common.Services
lock (cache)
{
var newItemCount = 0;
var trackerCache = cache.FirstOrDefault(c => c.TrackerId == indexer.ID);
var trackerCache = cache.FirstOrDefault(c => c.TrackerId == indexer.Id);
if (trackerCache != null)
{
foreach (var release in releases)