mirror of
https://github.com/Jackett/Jackett
synced 2025-01-01 12:46:23 +00:00
parent
edce56f363
commit
6e527823b5
2 changed files with 11 additions and 4 deletions
|
@ -284,6 +284,17 @@ namespace Jackett.Common.Indexers
|
|||
if (r.MagnetUri != null && string.IsNullOrWhiteSpace(r.InfoHash))
|
||||
r.InfoHash = MagnetUtil.MagnetToInfoHash(r.MagnetUri);
|
||||
|
||||
// set guid
|
||||
if (r.Guid == null)
|
||||
{
|
||||
if (r.Details != null)
|
||||
r.Guid = r.Details;
|
||||
else if (r.Link != null)
|
||||
r.Guid = r.Link;
|
||||
else if (r.MagnetUri != null)
|
||||
r.Guid = r.MagnetUri;
|
||||
}
|
||||
|
||||
return r;
|
||||
});
|
||||
return fixedResults;
|
||||
|
|
|
@ -1382,8 +1382,6 @@ namespace Jackett.Common.Indexers
|
|||
var magnetUri = new Uri(value);
|
||||
release.MagnetUri = magnetUri;
|
||||
value = magnetUri.ToString();
|
||||
if (release.Guid == null)
|
||||
release.Guid = magnetUri;
|
||||
break;
|
||||
case "infohash":
|
||||
release.InfoHash = value;
|
||||
|
@ -1391,8 +1389,6 @@ namespace Jackett.Common.Indexers
|
|||
case "details":
|
||||
var url = resolvePath(value, searchUrlUri);
|
||||
release.Details = url;
|
||||
if (release.Guid == null)
|
||||
release.Guid = url;
|
||||
value = url.ToString();
|
||||
break;
|
||||
case "title":
|
||||
|
|
Loading…
Reference in a new issue