nethd: update search path and date filters

This commit is contained in:
ilike2burnthing 2021-02-17 00:01:58 +00:00 committed by GitHub
parent 0a823b2418
commit 6401016046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 24 deletions

View File

@ -1,7 +1,7 @@
--- ---
id: nethd id: nethd
name: NetHD name: NetHD
description: "NetHD (VietTorrent) is a VIETNAMESE Private Torrent Tracker for HD MOVIES / TV" description: "NetHD (VietTorrent) is a VIETNAMESE Semi-Private Torrent Tracker for HD MOVIES / TV"
language: vi-vn language: vi-vn
type: semi-private type: semi-private
encoding: UTF-8 encoding: UTF-8
@ -71,11 +71,11 @@ login:
error: error:
- selector: form#loginform > span.warning - selector: form#loginform > span.warning
test: test:
path: torrents.php path: torrentsz.php
search: search:
paths: paths:
- path: torrents.php - path: torrentsz.php
inputs: inputs:
$raw: "{{ range .Categories }}cat={{.}}&{{end}}" $raw: "{{ range .Categories }}cat={{.}}&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
@ -120,33 +120,19 @@ search:
- name: prepend - name: prepend
args: "download.php?id=" args: "download.php?id="
date: date:
# 2020-10-05<br/>14:43:24 # 2 ngày<br/>23 giờ
selector: td:nth-child(5):contains("-") selector: td:nth-child(5)
optional: true
filters:
- name: append
args: " +08:00" # CST
- name: dateparse
args: "2006-01-0215:04:05 -07:00"
date:
# 2 days<br/>23 hours
selector: td:nth-child(5):not(:contains("-"))
optional: true
filters: filters:
- name: re_replace - name: re_replace
args: ["year|years", "years "] args: ["năm", "years "]
- name: re_replace - name: re_replace
args: ["month|months", "months "] args: ["tháng", "months "]
- name: re_replace - name: re_replace
args: ["week|weeks", "weeks "] args: ["ngày", "days "]
- name: re_replace - name: re_replace
args: ["day|days", "days "] args: ["phút", "minutes "]
- name: re_replace - name: re_replace
args: ["second|seconds", "seconds "] args: ["giờ", "hours "]
- name: re_replace
args: ["minute|minutes", "minutes "]
- name: re_replace
args: ["hour|hours", "hours "]
- name: timeago - name: timeago
size: size:
selector: td:nth-child(6) selector: td:nth-child(6)