1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-22 07:43:13 +00:00

irishtv: new selectors resolves #15678

This commit is contained in:
Garfield69 2024-10-30 08:32:56 +13:00
parent abc07864d1
commit 5995fed99e

View file

@ -25,6 +25,7 @@ caps:
- {id: 16, cat: TV, desc: "Boxsets"} - {id: 16, cat: TV, desc: "Boxsets"}
- {id: 18, cat: Audio, desc: "Music"} - {id: 18, cat: Audio, desc: "Music"}
- {id: 19, cat: Movies, desc: "Film"} - {id: 19, cat: Movies, desc: "Film"}
- {id: 20, cat: Movies, desc: "VIP"}
modes: modes:
search: [q] search: [q]
@ -43,6 +44,10 @@ settings:
type: checkbox type: checkbox
label: Filter freeleech only label: Filter freeleech only
default: false default: false
- name: novip
type: checkbox
label: Hide VIP releases
default: true
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@ -84,8 +89,7 @@ search:
page: torrents page: torrents
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
category: "{{ range .Categories }}{{.}};{{end}}" category: "{{ range .Categories }}{{.}};{{end}}"
# 0 filename, 1 file&descr, 2 descr, 3 uploaders, 18 genre, 4 imdb, 5 gold, 6 silver, 7 bronze, 8-17 upload multiplier 1x-10x # 0 filename, 1 file&descr, 2 descr, 3 uploaders
# note the options are exclusive, so searching for gold means the search keywords are ignored
options: 0 options: 0
# 0 all, 1 active only, 2 dead only # 0 all, 1 active only, 2 dead only
active: 0 active: 0
@ -98,7 +102,7 @@ search:
args: ["\\.", " "] args: ["\\.", " "]
rows: rows:
selector: "table.lista > tbody > tr:has(a[href^=\"download.php?id=\"]):not(:has(a[href^=\"index.php?page=userdetails\"])){{ if .Config.freeleech }}:has(img[src$=\"gold.gif\"]){{ else }}{{ end }}, able.lista > tbody > tr:has(a[href^=\"download.php?id=\"]):not(:has(a[href^=\"index.php?page=userdetails\"])){{ if .Config.freeleech }}:has(img[src$=\"freeleech.gif\"]){{ else }}{{ end }}" selector: "table.lista > tbody > tr:has(a[href^=\"download.php?id=\"]){{ if .Config.novip }}:not(:has(a[href$=\"category=20\"])){{ else }}{{ end }}{{ if .Config.freeleech }}:has(img[src$=\"gold.gif\"]){{ else }}{{ end }}, table.lista > tbody > tr:has(a[href^=\"download.php?id=\"]){{ if .Config.novip }}:not(:has(a[href$=\"category=20\"])){{ else }}{{ end }}{{ if .Config.freeleech }}:has(img[src$=\"freeleech.gif\"]){{ else }}{{ end }}"
fields: fields:
category: category:
@ -134,20 +138,27 @@ search:
download: download:
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
size:
# Size:   2.00 GB
selector: td:has(a[href^="download.php?id="]) p:contains("Size:")
filters:
- name: regexp
args: (\d.+[B]$)
date: date:
selector: td:has(a[href^="download.php?id="]) ~ td ~ td # AddDate:   12:54:01 24/10/2024
selector: td:has(a[href^="download.php?id="]) p:contains("AddDate:")
# auto adjusted by site account profile # auto adjusted by site account profile
filters: filters:
- name: regexp
args: (\d{2}:\d{2}:\d{2}\s\d{1,2}\/\d{2}\/\d{4})
- name: dateparse - name: dateparse
args: "dd/MM/yyyy" args: "HH:mm:ss d/MM/yyyy"
seeders: seeders:
selector: td:has(a[href^="download.php?id="]) ~ td ~ td ~ td selector: td:has(a[href^="download.php?id="]) p:contains("Seeds:") > a
leechers: leechers:
selector: td:has(a[href^="download.php?id="]) ~ td ~ td ~ td ~ td selector: td:has(a[href^="download.php?id="]) p:contains("Seeds:") > a:nth-child(2)
grabs: grabs:
selector: td:has(a[href^="download.php?id="]) ~ td ~ td ~ td ~ td ~ td selector: td:has(a[href^="download.php?id="]) p:contains("Seeds:") > a:nth-child(3)
size:
selector: "td:has(a[href^=\"download.php?id=\"]) ~ td ~ td ~ td ~ td ~ td ~ td"
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src="images/freeleech.gif"]: 0 img[src="images/freeleech.gif"]: 0
@ -172,4 +183,4 @@ search:
minimumseedtime: minimumseedtime:
# 7 days (as seconds = 7 x 24 x 60 x 60) # 7 days (as seconds = 7 x 24 x 60 x 60)
text: 259200 text: 259200
# xbtitFM v4.1.28 # xbtitFM v4.1.31