lechaudron: update selectors for new layout.

This commit is contained in:
Garfield69 2019-09-20 09:24:04 +12:00
parent e51f900bb4
commit 24c00de1df
1 changed files with 31 additions and 11 deletions

View File

@ -185,19 +185,39 @@
filters: filters:
- name: regexp - name: regexp
args: "src= (.*?)><" args: "src= (.*?)><"
size:
selector: td:nth-last-child(6)
grabs:
selector: td:nth-last-child(5)
seeders:
selector: td:nth-last-child(4)
leechers:
selector: td:nth-last-child(3)
date: date:
selector: td:nth-last-child(1) selector: a[onmouseover] font[color="#F2F2F2"]
filters: filters:
- name: dateparse - name: regexp
args: "02-01-2006 15:04:05" args: "Il y a (.*?)\\s-"
- name: replace
args: ["heures", "hours"]
- name: replace
args: ["heure", "hour"]
- name: replace
args: ["Jours", "days"]
- name: replace
args: ["Jour", "day"]
- name: replace
args: ["Semaines", "weeks"]
- name: replace
args: ["Semaine", "week"]
- name: replace
args: ["Mois", "months"]
- name: replace
args: ["Ans", "years"]
- name: replace
args: ["An", "year"]
- name: append
args: " ago"
size:
selector: td:nth-last-child(5)
grabs:
selector: td:nth-last-child(4)
seeders:
selector: td:nth-last-child(3)
leechers:
selector: td:nth-last-child(2)
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src$="/images/Torrents/TLibre.png"]: 0 img[src$="/images/Torrents/TLibre.png"]: 0