mejortorrent: DL may need sitelink prefix

This commit is contained in:
Garfield69 2024-03-21 14:44:14 +13:00
parent c230d1631f
commit 9788620809
1 changed files with 4 additions and 0 deletions

View File

@ -381,6 +381,10 @@ namespace Jackett.Common.Indexers
private ReleaseInfo GenerateRelease(string title, string detailsStr, string downloadLink, string cat,
DateTime publishDate, long size)
{
if (downloadLink.StartsWith("/"))
{
downloadLink = SiteLink + downloadLink.Substring(1);
}
var link = new Uri(downloadLink);
var details = new Uri(detailsStr);
var release = new ReleaseInfo