1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-06 19:58:38 +00:00

trezzor: code tidy

add english title clean up #9943
add date TZ
This commit is contained in:
Garfield69 2020-11-03 06:44:11 +13:00
parent f25ff306fb
commit cce0cf0ffa

View file

@ -70,45 +70,48 @@ search:
- path: torrents.php - path: torrents.php
keywordsfilters: keywordsfilters:
- name: re_replace - name: re_replace
args: ["S(\\d{2})E(\\d{2})", "$1 $2"] args: ["(?i)S(\\d{2})E(\\d{2})", "$1 $2"]
inputs: inputs:
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
category: "0" category: 0
active: "1" active: 1
rows: rows:
selector: tr.torrenty_lista selector: tr.torrenty_lista
fields: fields:
title:
selector: a[href^="details.php?slug="]
attribute: title
filters:
- name: replace
args: ["Zobrazit detaily: ", ""]
- name: re_replace
args: [".*? / ", ""]
- name: diacritics
args: replace
category: category:
selector: a[href^="torrents.php?onlycat="] selector: a[href^="torrents.php?onlycat="]
attribute: href attribute: href
filters: filters:
- name: querystring - name: querystring
args: onlycat args: onlycat
title:
selector: a[href^="details.php?slug="]
attribute: title
filters:
# Czech, English
- name: re_replace
args: ["(?i)(Zobrazit detaily: |View details: )", ""]
- name: re_replace
args: [".*? / ", ""]
- name: diacritics
args: replace
details: details:
selector: a[href^="details.php?slug="] selector: a[href^="details.php?slug="]
attribute: href attribute: href
download: download:
selector: a[href^="download.php?slug="] selector: a[href^="download.php?slug="]
attribute: href attribute: href
size:
selector: td:nth-child(7)
date: date:
selector: td:nth-child(6) selector: td:nth-child(6)
filters: filters:
- name: append - name: append
args: " +02:00" args: " +02:00" # EET
- name: dateparse - name: dateparse
args: "2/1/2006 15:04 -07:00" args: "2/1/2006 15:04 -07:00"
size:
selector: td:nth-child(7)
seeders: seeders:
selector: td:nth-child(8) a selector: td:nth-child(8) a
leechers: leechers:
@ -119,8 +122,8 @@ search:
- name: replace - name: replace
args: ["---", "0"] args: ["---", "0"]
downloadvolumefactor: downloadvolumefactor:
case: text: 1
"*": "1"
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": "1" # engine tbd