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: search:
paths: paths:
- path: "search/{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}" - path: "search/{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
rows: rows:
selector: div.row:has(a[href*="/detail/hash/"]) selector: div.row:has(a[href*="/detail/hash/"])
fields: fields:

View File

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

View File

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

View File

@@ -53,7 +53,7 @@
attribute: href attribute: href
search: 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: paths:
- path: index.php - path: index.php
keywordsfilters: keywordsfilters:
@@ -70,7 +70,7 @@
showposts: 1 showposts: 1
# 0 in article 1 in comments 2 in static pages 3 in article titles # 0 in article 1 in comments 2 in static pages 3 in article titles
titleonly: 3 titleonly: 3
story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}2019{{ end }}" story: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
sortby: "{{ .Config.sort }}" sortby: "{{ .Config.sort }}"
resorder: "{{ .Config.type }}" resorder: "{{ .Config.type }}"

View File

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

View File

@@ -106,11 +106,11 @@
search: search:
paths: 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 - path: search.php
inputs: inputs:
tracker_search: torrent tracker_search: torrent
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}" keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
terms: all terms: all
author: "" author: ""
sc: 1 sc: 1

View File

@@ -668,7 +668,7 @@
attribute: href attribute: href
search: 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: paths:
- path: search.php - path: search.php
inputs: inputs:
@@ -678,7 +678,7 @@
tracker_search: torrent tracker_search: torrent
sk: "{{ .Config.sort }}" sk: "{{ .Config.sort }}"
sd: "{{ .Config.type }}" sd: "{{ .Config.type }}"
keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}2019{{end}}" keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
$raw: "{{ range .Categories }}&fid[]={{.}}{{end}}" $raw: "{{ range .Categories }}&fid[]={{.}}{{end}}"
rows: rows:

View File

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

View File

@@ -298,7 +298,7 @@
attribute: href attribute: href
search: 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: paths:
- path: search.php - path: search.php
inputs: inputs:
@@ -306,10 +306,10 @@
sf: titleonly sf: titleonly
fp: 1 fp: 1
tracker_search: torrent tracker_search: torrent
keywords: "{{if .Keywords }}{{.Keywords}}{{else}}2019{{end}}" keywords: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{ .Today.Year }}{{end}}"
sk: "{{ .Config.sort }}" sk: "{{ .Config.sort }}"
sd: "{{ .Config.type }}" sd: "{{ .Config.type }}"
$raw: "{{range .Categories}}&fid[]={{.}}{{end}}" $raw: "{{ range .Categories }}&fid[]={{.}}{{end}}"
rows: rows:
selector: table.tablebg tr.col_line selector: table.tablebg tr.col_line

View File

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

View File

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