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:
|
filters:
|
||||||
- name: querystring
|
- name: querystring
|
||||||
args: url
|
args: url
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
- path: torrents
|
- path: torrents
|
||||||
|
@@ -1797,7 +1797,7 @@ namespace Jackett.Common.Indexers
|
|||||||
href = downloadElement.TextContent;
|
href = downloadElement.TextContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
href = applyFilters(href, Download.Filters, variables);
|
href = applyFilters(href, selector.Filters, variables);
|
||||||
var torrentLink = resolvePath(href, link);
|
var torrentLink = resolvePath(href, link);
|
||||||
if (torrentLink.Scheme != "magnet")
|
if (torrentLink.Scheme != "magnet")
|
||||||
{
|
{
|
||||||
|
@@ -168,7 +168,6 @@ namespace Jackett.Common.Models
|
|||||||
public class downloadBlock
|
public class downloadBlock
|
||||||
{
|
{
|
||||||
public List<downloadsField> Selectors { get; set; }
|
public List<downloadsField> Selectors { get; set; }
|
||||||
public List<filterBlock> Filters { get; set; }
|
|
||||||
public string Method { get; set; }
|
public string Method { get; set; }
|
||||||
public requestBlock Before { get; set; }
|
public requestBlock Before { get; set; }
|
||||||
}
|
}
|
||||||
@@ -177,5 +176,6 @@ namespace Jackett.Common.Models
|
|||||||
{
|
{
|
||||||
public string Selector { get; set; }
|
public string Selector { get; set; }
|
||||||
public string Attribute { get; set; }
|
public string Attribute { get; set; }
|
||||||
|
public List<filterBlock> Filters { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user