mirror of https://github.com/Jackett/Jackett
piratbit: new layout selectors
they have dropped unix dates and changed title selector amended other selectors to be non language reliant
This commit is contained in:
parent
13f9079daf
commit
695c4a1ebc
|
@ -668,7 +668,7 @@ search:
|
|||
df: 1
|
||||
da: 1
|
||||
ss: "{{ .Keywords }}"
|
||||
submit: "Поиск"
|
||||
submit: Поиск
|
||||
|
||||
keywordsfilters:
|
||||
- name: diacritics
|
||||
|
@ -685,13 +685,13 @@ search:
|
|||
|
||||
fields:
|
||||
category:
|
||||
selector: td a.gen
|
||||
selector: a.gen
|
||||
attribute: href
|
||||
filters:
|
||||
- name: querystring
|
||||
args: f
|
||||
title:
|
||||
selector: td a.genmed
|
||||
selector: a.gengood
|
||||
filters:
|
||||
# normalize to SXXEYY format
|
||||
- name: re_replace
|
||||
|
@ -757,22 +757,38 @@ search:
|
|||
- name: append
|
||||
args: "{{ if .Config.addrussiantotitle }} RUS{{ else }}{{ end }}"
|
||||
details:
|
||||
selector: td a.genmed
|
||||
selector: a.gengood
|
||||
attribute: href
|
||||
download:
|
||||
selector: td a.genmed
|
||||
selector: a.gengood
|
||||
attribute: href
|
||||
description:
|
||||
selector: td:first-child span
|
||||
attribute: title
|
||||
size:
|
||||
selector: td > u
|
||||
selector: td:nth-child(4)
|
||||
date_day:
|
||||
# 23:18
|
||||
selector: td:last-child > p:first-child:not(:contains("-"))
|
||||
optional: true
|
||||
filters:
|
||||
- name: append
|
||||
args: " +03:00" # MSK
|
||||
- name: dateparse
|
||||
args: "HH:mm zzz"
|
||||
date_year:
|
||||
# 13:44 25-09-23
|
||||
selector: td:last-child > p:first-child:contains("-")
|
||||
optional: true
|
||||
filters:
|
||||
- name: append
|
||||
args: " +03:00" # MSK
|
||||
- name: dateparse
|
||||
args: "HH:mm d-MM-yy zzz"
|
||||
date:
|
||||
# unix
|
||||
selector: td[title="Добавлен"] > u, td[title="Added"] > u
|
||||
# Russian and Ukranian and English languages are supported
|
||||
text: "{{ if or .Result.date_day .Result.date_year }}{{ or .Result.date_day .Result.date_year }}{{ else }}now{{ end }}"
|
||||
grabs:
|
||||
selector: td[title^="Ответов"], td[title^="Відповідей"], td[title^="Replies"]
|
||||
selector: td:nth-child(7)
|
||||
seeders:
|
||||
selector: td.seedmed
|
||||
leechers:
|
||||
|
|
Loading…
Reference in New Issue