1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-24 23:22:46 +00:00

Resolved null pointer causing searches to fail on RevolutionTT (#1494)

This commit is contained in:
David Dobmeier 2017-06-23 13:56:03 -04:00 committed by kaso17
parent 3bef19cbfe
commit 0473029277

View file

@ -333,8 +333,9 @@ namespace Jackett.Indexers
release.Title = qLink.Find("b").Text();
release.Description = release.Title;
release.Link = new Uri(SiteLink + qRow.Find("td:nth-child(4) > a").Attr("href"));
var releaseLinkURI = qRow.Find("td:nth-child(4) > a").Attr("href");
release.Link = new Uri(SiteLink + releaseLinkURI);
if (releaseLinkURI != null){
var dateString = qRow.Find("td:nth-child(6) nobr")[0].TextContent.Trim();
//"2015-04-25 23:38:12"
//"yyyy-MMM-dd hh:mm:ss"
@ -349,7 +350,7 @@ namespace Jackett.Indexers
var category = qRow.Find(".br_type > a").Attr("href").Replace("browse.php?cat=", string.Empty);
release.Category = MapTrackerCatToNewznab(category);
}
releases.Add(release);
}
}