assorted yml: code tidy

This commit is contained in:
Garfield69 2020-11-17 15:54:04 +13:00
parent 861ffcc3c0
commit 9ba44f86c9
4 changed files with 5 additions and 14 deletions

View File

@ -114,15 +114,6 @@ login:
test:
path: selection.php
# download:
# before:
# path: ajax_det_poll.php
# method: "post"
# inputs:
# set_thanks: "thanks"
# det_id: "{{ .DownloadUri.Query.torrent }}"
# ajax: "yes"
search:
paths:
- path: selection.php

View File

@ -122,7 +122,7 @@ search:
selector: a[href^="download2.php"]
attribute: href
download:
text: "{{if .Config.seedbox}}{{ .Result.download2 }}{{else}}{{ .Result.download1 }}{{end}}"
text: "{{ if .Config.seedbox }}{{ .Result.download2 }}{{ else }}{{ .Result.download1 }}{{ end }}"
date:
selector: td:nth-child(4)
filters:

View File

@ -92,7 +92,7 @@ search:
path: index.php
keywordsfilters:
- name: re_replace
args: ["S(\\d{1,2})E(\\d{1,2})", "S$1/E$2"]
args: ["(?i)S(\\d{1,2})E(\\d{1,2})", "S$1/E$2"]
inputs:
page: torrents
$raw: "&category={{ range .Categories }}{{.}};{{end}}"
@ -117,7 +117,7 @@ search:
- name: re_replace
args: ["\\/", " "]
- name: re_replace
args: ["S(\\d{1,2}) E(\\d{1,2})", "S$1E$2"]
args: ["(?i)S(\\d{1,2}) E(\\d{1,2})", "S$1E$2"]
- name: re_replace
args: ["\\(", ""]
- name: re_replace

View File

@ -106,7 +106,7 @@ login:
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
returnto: "/"
returnto: /
error:
- selector: table.main:contains("Login failed!")
message:
@ -147,7 +147,7 @@ search:
selector: a[href^="download2.php"]
attribute: href
download:
text: "{{if .Config.seedbox}}{{ .Result.download2 }}{{else}}{{ .Result.download1 }}{{end}}"
text: "{{ if .Config.seedbox }}{{ .Result.download2 }}{{ else }}{{ .Result.download1 }}{{ end }}"
details:
selector: a[href^="details.php?id="]
attribute: href