assorted: replace 2019 on TEST with .Today.Year

This commit is contained in:
Garfield69 2020-04-20 12:18:44 +12:00
parent 8645e859b9
commit e6c4f27837
11 changed files with 18 additions and 18 deletions

View File

@ -28,7 +28,7 @@
search:
paths:
- path: "search/{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}"
- path: "search/{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
rows:
selector: div.row:has(a[href*="/detail/hash/"])
fields:

View File

@ -273,7 +273,7 @@
- path: search.php
inputs:
tracker_search: torrent
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
terms: all
author: ""
sc: 1
@ -308,7 +308,7 @@
selector: a[href^="./viewforum.php?f="] + b
filters:
- name: replace
args: ["ТБ", "TB"]
args: ["ТБ", "TB"]
- name: replace
args: ["ГБ", "GB"]
- name: replace

View File

@ -28,7 +28,7 @@
method: post
followredirect: true
inputs:
keyword: "{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}"
keyword: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
rows:
selector: div.list-area > dl.item

View File

@ -53,7 +53,7 @@
attribute: href
search:
# https://hdreactor.net/index.php?do=search&subaction=search&showposts=1&story=2019&catlist[]=2001&catlist[]=2006
# https://hdreactor.net/index.php?do=search&subaction=search&showposts=1&story=2020&catlist[]=2001&catlist[]=2006
paths:
- path: index.php
keywordsfilters:
@ -70,7 +70,7 @@
showposts: 1
# 0 in article 1 in comments 2 in static pages 3 in article titles
titleonly: 3
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}2019{{ end }}"
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
sortby: "{{ .Config.sort }}"
resorder: "{{ .Config.type }}"

View File

@ -59,8 +59,8 @@
search:
paths:
# https://ibit.to/torrent-search/2019/all/uploaded_at:desc/1/
- path: "torrent-search/{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}/all/{{ .Config.sortby }}:{{ .Config.order }}/1/"
# https://ibit.to/torrent-search/2020/all/uploaded_at:desc/1/
- path: "torrent-search/{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}/all/{{ .Config.sortby }}:{{ .Config.order }}/1/"
rows:
selector: table.striped > tbody > tr

View File

@ -106,11 +106,11 @@
search:
paths:
#http://kinonavse100.com/search.php?tracker_search=torrent&keywords=2019&terms=all&author=&sc=1&sf=titleonly&sk=t&sd=d&sr=topics&st=0&ch=300&t=0&submit=Search
#http://kinonavse100.com/search.php?tracker_search=torrent&keywords=2020&terms=all&author=&sc=1&sf=titleonly&sk=t&sd=d&sr=topics&st=0&ch=300&t=0&submit=Search
- path: search.php
inputs:
tracker_search: torrent
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
terms: all
author: ""
sc: 1

View File

@ -668,7 +668,7 @@
attribute: href
search:
# http://www.nntt.org/search.php?sr=topics&sf=titleonly&fp=1&tracker_search=torrent&keywords=2019&fid[]=154
# http://www.nntt.org/search.php?sr=topics&sf=titleonly&fp=1&tracker_search=torrent&keywords=2020&fid[]=154
paths:
- path: search.php
inputs:
@ -678,7 +678,7 @@
tracker_search: torrent
sk: "{{ .Config.sort }}"
sd: "{{ .Config.type }}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
$raw: "{{ range .Categories }}&fid[]={{.}}{{end}}"
rows:

View File

@ -844,7 +844,7 @@
inputs:
$raw: "{{ range .Categories }}&fid[]={{.}}{{end}}"
tracker_search: torrent
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
terms: all
fp: 1
author: ""

View File

@ -298,7 +298,7 @@
attribute: href
search:
# http://rus-media.org/search.php?tracker_search=torrent&sr=topics&keywords=2019&fid[]=54
# http://rus-media.org/search.php?tracker_search=torrent&sr=topics&keywords=2020&fid[]=54
paths:
- path: search.php
inputs:
@ -306,10 +306,10 @@
sf: titleonly
fp: 1
tracker_search: torrent
keywords: "{{if .Keywords }}{{.Keywords}}{{else}}2019{{end}}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
sk: "{{ .Config.sort }}"
sd: "{{ .Config.type }}"
$raw: "{{range .Categories}}&fid[]={{.}}{{end}}"
$raw: "{{ range .Categories }}&fid[]={{.}}{{end}}"
rows:
selector: table.tablebg tr.col_line

View File

@ -24,7 +24,7 @@
search:
paths:
- path: "search/{{ if .Keywords }}{{ .Keywords}}{{else}}2019{{end}}"
- path: "search/{{ if .Keywords }}{{ .Keywords}}{{else}}{{ .Today.Year }}{{end}}"
rows:
selector: table#archiveResult tbody tr:has(a[href^="magnet:?xt="])

View File

@ -25,7 +25,7 @@
paths:
- path: b.php
inputs:
search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}2019{{ end }}"
search: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
rows:
selector: table > tbody > tr.gai