Fixed: (FunFile) Change download url

pull/1458/head
Bogdan 2 years ago
parent 4ad992f76a
commit b608a7a904

@ -288,11 +288,11 @@ public class FunFileParser : IParseIndexerResponse
throw new Exception("Download links not found. Make sure you can download from the website."); throw new Exception("Download links not found. Make sure you can download from the website.");
} }
var link = _settings.BaseUrl + qDownloadLink.GetAttribute("href"); var downloadUrl = _settings.BaseUrl + qDownloadLink.GetAttribute("href");
var qDetailsLink = row.QuerySelector("a[href^=\"details.php?id=\"]"); var qDetailsLink = row.QuerySelector("a[href^=\"details.php?id=\"]");
var title = qDetailsLink?.GetAttribute("title")?.Trim(); var title = qDetailsLink?.GetAttribute("title")?.Trim();
var details = _settings.BaseUrl + qDetailsLink?.GetAttribute("href")?.Replace("&hit=1", ""); var infoUrl = _settings.BaseUrl + qDetailsLink?.GetAttribute("href")?.Replace("&hit=1", "");
var categoryLink = row.QuerySelector("a[href^=\"browse.php?cat=\"]")?.GetAttribute("href"); var categoryLink = row.QuerySelector("a[href^=\"browse.php?cat=\"]")?.GetAttribute("href");
var cat = ParseUtil.GetArgumentFromQueryString(categoryLink, "cat"); var cat = ParseUtil.GetArgumentFromQueryString(categoryLink, "cat");
@ -302,9 +302,9 @@ public class FunFileParser : IParseIndexerResponse
var release = new TorrentInfo var release = new TorrentInfo
{ {
Guid = link, Guid = infoUrl,
InfoUrl = link, InfoUrl = infoUrl,
DownloadUrl = details, DownloadUrl = downloadUrl,
Title = title, Title = title,
Categories = _categories.MapTrackerCatToNewznab(cat), Categories = _categories.MapTrackerCatToNewznab(cat),
Size = ParseUtil.GetBytes(row.Children[7].TextContent), Size = ParseUtil.GetBytes(row.Children[7].TextContent),

Loading…
Cancel
Save