SceneTime: make category optional

This commit is contained in:
kaso17 2017-09-01 17:46:24 +02:00
parent 222fec2fd0
commit 1cd0358531
1 changed files with 5 additions and 2 deletions

View File

@ -198,8 +198,11 @@ namespace Jackett.Indexers
var categoryCol = row.ChildElements.ElementAt(categoryIndex);
string catLink = categoryCol.Cq().Find("a").Attr("href");
string catId = new Regex(@"\?cat=(\d*)").Match(catLink).Groups[1].ToString().Trim();
release.Category = MapTrackerCatToNewznab(catId);
if(catLink != null)
{
string catId = new Regex(@"\?cat=(\d*)").Match(catLink).Groups[1].ToString().Trim();
release.Category = MapTrackerCatToNewznab(catId);
}
var descCol = row.ChildElements.ElementAt(nameIndex);
var qDescCol = descCol.Cq();