mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-22 04:40:59 +02:00
Fixed: (IPTorrents) Improve category selector
This commit is contained in:
parent
6581bddba3
commit
5096a088d4
1 changed files with 2 additions and 2 deletions
|
|
@ -333,7 +333,7 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
var publishDate = DateTimeUtil.FromTimeAgo(dateSplit.First());
|
||||
var description = descrSplit.Length > 1 ? "Tags: " + descrSplit.First().Trim() : "";
|
||||
|
||||
var catIcon = row.QuerySelector("td:nth-of-type(1) a");
|
||||
var catIcon = row.QuerySelector("td:nth-of-type(1) a[href^=\"?\"]");
|
||||
if (catIcon == null)
|
||||
{
|
||||
// Torrents - Category column == Text or Code
|
||||
|
|
@ -342,7 +342,7 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
}
|
||||
|
||||
// Torrents - Category column == Icons
|
||||
var cat = _categories.MapTrackerCatToNewznab(catIcon.GetAttribute("href").Substring(1));
|
||||
var cat = _categories.MapTrackerCatToNewznab(catIcon.GetAttribute("href")?.Substring(1));
|
||||
|
||||
var size = ParseUtil.GetBytes(row.Children[sizeIndex].TextContent);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue