mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
torrentproject2: fix selectors by getting direct descendants
This commit is contained in:
@@ -83,20 +83,20 @@ search:
|
|||||||
# while browse has cats the search does not (atm) so we wont support cats for now.
|
# while browse has cats the search does not (atm) so we wont support cats for now.
|
||||||
text: Other
|
text: Other
|
||||||
title:
|
title:
|
||||||
selector: span > a
|
selector: :scope > span > a
|
||||||
details:
|
details:
|
||||||
selector: span > a
|
selector: :scope > span > a
|
||||||
attribute: href
|
attribute: href
|
||||||
download:
|
download:
|
||||||
selector: span > a
|
selector: :scope > span > a
|
||||||
attribute: href
|
attribute: href
|
||||||
date_ago:
|
date_ago:
|
||||||
# 7 years ago
|
# 7 years ago
|
||||||
selector: span:nth-child(4):contains("ago")
|
selector: :scope > span:nth-child(4):contains("ago")
|
||||||
optional: true
|
optional: true
|
||||||
date_time:
|
date_time:
|
||||||
# 2020-11-05 07:34:44
|
# 2020-11-05 07:34:44
|
||||||
selector: span:nth-child(4):contains(":")
|
selector: :scope > span:nth-child(4):contains(":")
|
||||||
optional: true
|
optional: true
|
||||||
filters:
|
filters:
|
||||||
- name: append
|
- name: append
|
||||||
@@ -106,11 +106,11 @@ search:
|
|||||||
date:
|
date:
|
||||||
text: "{{ if or .Result.date_ago .Result.date_time }}{{ or .Result.date_ago .Result.date_time }}{{ else }}now{{ end }}"
|
text: "{{ if or .Result.date_ago .Result.date_time }}{{ or .Result.date_ago .Result.date_time }}{{ else }}now{{ end }}"
|
||||||
size:
|
size:
|
||||||
selector: span:nth-child(5)
|
selector: :scope > span:nth-child(5)
|
||||||
seeders:
|
seeders:
|
||||||
selector: span:nth-child(2)
|
selector: :scope > span:nth-child(2)
|
||||||
leechers:
|
leechers:
|
||||||
selector: span:nth-child(3)
|
selector: :scope > span:nth-child(3)
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
text: 0
|
text: 0
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
|
Reference in New Issue
Block a user