mirror of
https://github.com/Jackett/Jackett
synced 2025-03-10 06:03:09 +00:00
gazelle: fix info url
This commit is contained in:
parent
38aadf7e1b
commit
ca13c35c94
2 changed files with 4 additions and 4 deletions
|
@ -498,7 +498,7 @@ namespace Jackett.Common.Indexers.Abstract
|
||||||
release.Size = (long)torrent["size"];
|
release.Size = (long)torrent["size"];
|
||||||
release.Seeders = (int)torrent["seeders"];
|
release.Seeders = (int)torrent["seeders"];
|
||||||
release.Peers = (int)torrent["leechers"] + release.Seeders;
|
release.Peers = (int)torrent["leechers"] + release.Seeders;
|
||||||
release.Details = GetInfoUrl((int)torrent["groupId"], torrentId);
|
release.Details = GetInfoUrl(torrentId);
|
||||||
release.Guid = release.Details;
|
release.Guid = release.Details;
|
||||||
release.Link = GetDownloadUrl(torrentId, release.DownloadVolumeFactor != 0);
|
release.Link = GetDownloadUrl(torrentId, release.DownloadVolumeFactor != 0);
|
||||||
|
|
||||||
|
@ -565,9 +565,9 @@ namespace Jackett.Common.Indexers.Abstract
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual Uri GetInfoUrl(int groupId, int torrentId)
|
protected virtual Uri GetInfoUrl(int torrentId, int? groupId = null)
|
||||||
{
|
{
|
||||||
return new Uri($"{SiteLink}torrents.php?id={groupId}&torrentid={torrentId}");
|
return new Uri($"{SiteLink}torrents.php?torrentid={torrentId}{(groupId > 0 ? $"&id={groupId}" : "")}");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual Uri GetDownloadUrl(int torrentId, bool canUseToken)
|
protected virtual Uri GetDownloadUrl(int torrentId, bool canUseToken)
|
||||||
|
|
|
@ -306,7 +306,7 @@ namespace Jackett.Common.Indexers
|
||||||
categories = MapTrackerCatToNewznab(torrent.Value<string>("CategoryID")).ToArray();
|
categories = MapTrackerCatToNewznab(torrent.Value<string>("CategoryID")).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
var details = GetInfoUrl(groupId, torrentId);
|
var details = GetInfoUrl(torrentId, groupId);
|
||||||
var link = GetDownloadUrl(torrentId, false);
|
var link = GetDownloadUrl(torrentId, false);
|
||||||
|
|
||||||
var title = WebUtility.HtmlDecode(torrent.Value<string>("ReleaseTitle"));
|
var title = WebUtility.HtmlDecode(torrent.Value<string>("ReleaseTitle"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue