1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-23 06:40:57 +00:00

piratbit, piratbitL: new size selector. resolves #6399

also tidy up grabs and date selectors
This commit is contained in:
Garfield69 2019-11-20 07:58:09 +13:00
parent 5a5c0a5f34
commit 3b65ea3c4e
2 changed files with 10 additions and 90 deletions

View file

@ -657,72 +657,30 @@
- name: querystring
args: f
size:
selector: td div a.dLink
filters:
- name: re_replace
args: ["\u2193", ""] # down arrow
selector: td > u
seeders:
selector: td.seedmed
leechers:
selector: td.leechmed
# Russian and Ukranian and English languages are supported
grabs:
optional: true
selector: td[title^="Ответов"]
grabs:
optional: true
selector: td[title^="Відповідей"]
grabs:
optional: true
selector: td[title^="Replies"]
selector: td[title^="Ответов"], td[title^="Відповідей"], td[title^="Replies"]
# 2 date flavours for 3 languages
date:
# 15:04
optional: true
selector: td[title="Добавлен"] p:first-of-type:not(:contains("-"))
selector: td[title="Добавлен"] p:first-of-type:not(:contains("-")), td[title="Доданий"] p:first-of-type:not(:contains("-")), td[title="Added"] p:first-of-type:not(:contains("-"))
filters:
- name: dateparse
args: "15:04"
date:
# 15:04 24-02-19
optional: true
selector: td[title="Добавлен"] p:first-of-type:contains("-")
filters:
- name: dateparse
args: "15:04 2-01-06"
date:
# 15:04
optional: true
selector: td[title="Доданий"] p:first-of-type:not(:contains("-"))
filters:
- name: dateparse
args: "15:04"
date:
# 15:04 24-02-19
optional: true
selector: td[title="Доданий"] p:first-of-type:contains("-")
filters:
- name: dateparse
args: "15:04 2-01-06"
date:
# 15:04
optional: true
selector: td[title="Added"] p:first-of-type:not(:contains("-"))
filters:
- name: dateparse
args: "15:04"
date:
# 15:04 24-02-19
optional: true
selector: td[title="Added"] p:first-of-type:contains("-")
selector: td[title="Добавлен"] p:first-of-type:contains("-"), td[title="Доданий"] p:first-of-type:contains("-"), td[title="Added"] p:first-of-type:contains("-")
filters:
- name: dateparse
args: "15:04 2-01-06"
downloadvolumefactor:
case:
"span.isgold": "0"
"span.issilver": "0.5"
"*": "1"
text: 0
uploadvolumefactor:
case:
"*": "1"
text: 1

View file

@ -669,64 +669,26 @@
- name: querystring
args: f
size:
selector: td div a.dLink
filters:
- name: re_replace
args: ["\u2193", ""] # down arrow
selector: td > u
seeders:
selector: td.seedmed
leechers:
selector: td.leechmed
# Russian and Ukranian and English languages are supported
grabs:
optional: true
selector: td[title^="Ответов"]
grabs:
optional: true
selector: td[title^="Відповідей"]
grabs:
optional: true
selector: td[title^="Replies"]
selector: td[title^="Ответов"], td[title^="Відповідей"], td[title^="Replies"]
# 2 date flavours for 3 languages
date:
# 15:04
optional: true
selector: td[title="Добавлен"] p:first-of-type:not(:contains("-"))
selector: td[title="Добавлен"] p:first-of-type:not(:contains("-")), td[title="Доданий"] p:first-of-type:not(:contains("-")), td[title="Added"] p:first-of-type:not(:contains("-"))
filters:
- name: dateparse
args: "15:04"
date:
# 15:04 24-02-19
optional: true
selector: td[title="Добавлен"] p:first-of-type:contains("-")
filters:
- name: dateparse
args: "15:04 2-01-06"
date:
# 15:04
optional: true
selector: td[title="Доданий"] p:first-of-type:not(:contains("-"))
filters:
- name: dateparse
args: "15:04"
date:
# 15:04 24-02-19
optional: true
selector: td[title="Доданий"] p:first-of-type:contains("-")
filters:
- name: dateparse
args: "15:04 2-01-06"
date:
# 15:04
optional: true
selector: td[title="Added"] p:first-of-type:not(:contains("-"))
filters:
- name: dateparse
args: "15:04"
date:
# 15:04 24-02-19
optional: true
selector: td[title="Added"] p:first-of-type:contains("-")
selector: td[title="Добавлен"] p:first-of-type:contains("-"), td[title="Доданий"] p:first-of-type:contains("-"), td[title="Added"] p:first-of-type:contains("-")
filters:
- name: dateparse
args: "15:04 2-01-06"