Fixed: (RevolutionTT) Remove [REQ] prefix from torrent title (#545)

[REQ] is an automatically generated prefix added to fulfilled requests, and very often breaks parsing for title matching

Co-authored-by: Shane Moore <vales@users.noreply.github.com>
This commit is contained in:
Shane M
2021-10-10 17:14:03 -07:00
committed by GitHub
parent 4347e1cf7a
commit e49d03ab7b

View File

@@ -269,6 +269,12 @@ namespace NzbDrone.Core.Indexers.Definitions
var details = _settings.BaseUrl + qDetails.GetAttribute("href"); var details = _settings.BaseUrl + qDetails.GetAttribute("href");
var title = qDetails.QuerySelector("b").TextContent; var title = qDetails.QuerySelector("b").TextContent;
// Remove auto-generated [REQ] tag from fulfilled requests
if (title.StartsWith("[REQ] "))
{
title = title.Substring(6);
}
var qLink = row.QuerySelector("td:nth-child(4) > a"); var qLink = row.QuerySelector("td:nth-child(4) > a");
if (qLink == null) if (qLink == null)
{ {