mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: modified filters for selectors (#11918)
This commit is contained in:
@@ -64,6 +64,7 @@ download:
|
||||
filters:
|
||||
- name: querystring
|
||||
args: url
|
||||
|
||||
search:
|
||||
paths:
|
||||
- path: torrents
|
||||
|
@@ -1797,7 +1797,7 @@ namespace Jackett.Common.Indexers
|
||||
href = downloadElement.TextContent;
|
||||
}
|
||||
|
||||
href = applyFilters(href, Download.Filters, variables);
|
||||
href = applyFilters(href, selector.Filters, variables);
|
||||
var torrentLink = resolvePath(href, link);
|
||||
if (torrentLink.Scheme != "magnet")
|
||||
{
|
||||
|
@@ -168,7 +168,6 @@ namespace Jackett.Common.Models
|
||||
public class downloadBlock
|
||||
{
|
||||
public List<downloadsField> Selectors { get; set; }
|
||||
public List<filterBlock> Filters { get; set; }
|
||||
public string Method { get; set; }
|
||||
public requestBlock Before { get; set; }
|
||||
}
|
||||
@@ -177,5 +176,6 @@ namespace Jackett.Common.Models
|
||||
{
|
||||
public string Selector { get; set; }
|
||||
public string Attribute { get; set; }
|
||||
public List<filterBlock> Filters { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user