1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-10 14:14:25 +00:00

torrent9: new layout: (#13162)

This commit is contained in:
Edouard Chin 2022-04-19 23:04:33 +02:00 committed by GitHub
parent 5d3c6c39b7
commit 70fe97190a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ download:
search:
paths:
- path: "{{ if .Keywords }}/search_torrent/{{ .Keywords }}{{ .Config.sort }}{{ else }}{{ end }}"
- path: "/search_torrent/{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}{{ .Config.sort }}"
keywordsfilters:
# if searching for season packs with S01 to saison 1 #9712
- name: re_replace
@ -180,9 +180,12 @@ search:
selector: td:nth-child(1) a
attribute: href
date:
text: now
size:
selector: td:nth-child(2)
filters:
- name: dateparse
args: "02/01/2006"
size:
selector: td:nth-child(3)
filters:
- name: replace
args: ["Ko", "KB"]
@ -193,12 +196,12 @@ search:
- name: replace
args: ["To", "TB"]
seeders_optional:
selector: td:nth-child(3)
selector: td:nth-child(4)
optional: true
seeders:
text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers_optional:
selector: td:nth-child(4)
selector: td:nth-child(5)
optional: true
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"