baibako: add freeleech #9465, date TZ and MR

This commit is contained in:
Garfield69
2020-09-30 08:49:13 +13:00
parent 41a4259592
commit 2fc2c79dab

View File

@@ -29,6 +29,10 @@ settings:
type: checkbox type: checkbox
label: Strip Russian Letters label: Strip Russian Letters
default: false default: false
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@@ -63,8 +67,8 @@ search:
- path: browse.php - path: browse.php
inputs: inputs:
search: "{{.Keywords }}" search: "{{.Keywords }}"
# 0 active 1 incldead 2 onlydead 3 gold 4 seedfree # 0 active, 1 incldead, 2 onlydead, 3 gold, 4 seedfree
incldead: 1 incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
keywordsfilters: keywordsfilters:
@@ -75,6 +79,8 @@ search:
selector: table > tbody > tr:has(a[href^="details.php?id="]) selector: table > tbody > tr:has(a[href^="details.php?id="])
fields: fields:
category:
text: 1
title: title:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
filters: filters:
@@ -105,8 +111,6 @@ search:
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
category:
text: 1
banner: banner:
selector: img[src^="/posters/"] selector: img[src^="/posters/"]
attribute: src attribute: src
@@ -144,8 +148,10 @@ search:
args: ["ноября", "November"] args: ["ноября", "November"]
- name: replace - name: replace
args: ["декабря", "December"] args: ["декабря", "December"]
- name: append
args: " +03:00" # MSK
- name: dateparse - name: dateparse
args: "2 January 2006 15:04:05" args: "2 January 2006 15:04:05 -07:00"
files: files:
selector: td:nth-last-child(5) selector: td:nth-last-child(5)
size: size:
@@ -167,6 +173,7 @@ search:
"a[href^=\"details.php?id=\"]:contains(\"(Золото)\")": 0 "a[href^=\"details.php?id=\"]:contains(\"(Золото)\")": 0
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": 1 minimumratio:
text: 0.3
# engine n/a # engine n/a