core: baseIndexer. change the GUID generation order. resolves #12463

try the link first, then the magnet, then the details.

By defaulting to details first, cardigann indexers can in some cases create the same GUID for different torrents under the one title group.
This commit is contained in:
Garfield69
2021-10-26 22:06:33 +13:00
parent 0942fc15e1
commit 3ca7f6bbbe

View File

@@ -306,12 +306,12 @@ namespace Jackett.Common.Indexers
// set guid
if (r.Guid == null)
{
if (r.Details != null)
r.Guid = r.Details;
else if (r.Link != null)
if (r.Link != null)
r.Guid = r.Link;
else if (r.MagnetUri != null)
r.Guid = r.MagnetUri;
else if (r.Details != null)
r.Guid = r.Details;
}
return r;