assorted: conform to yaml standards by avoiding duplicate keys #11917

This commit is contained in:
Garfield69 2021-10-22 12:40:25 +13:00
parent 8126a439d8
commit d7c843effa
5 changed files with 12 additions and 17 deletions

View File

@ -41,7 +41,7 @@ search:
selector: a
category:
selector: span.cpill
category:
category|append:
# add tv to video
optional: true
selector: span.cpill

View File

@ -94,7 +94,7 @@ search:
filters:
- name: querystring
args: cat
category:
category|append:
optional: true
case:
a[href="/browse.php?ext=1&bitrate=Lossless"]: 3040

View File

@ -136,8 +136,6 @@ search:
filters:
- name: replace
args: ["No downloads yet", "0"]
- name: regexp
args: ([\d,]+)
download:
selector: a[href^="download.php?id="]
attribute: href

View File

@ -119,7 +119,7 @@ search:
details:
selector: a[href^="/details.php?id="]
attribute: href
imdb:
imdbid:
selector: a[href^="imdb.com/title/tt"]
attribute: href
poster:
@ -143,27 +143,24 @@ search:
args: ["/", 1]
grabs:
selector: td:nth-child(7)
filters:
- name: regexp
args: ([\d,]+)
files:
selector: td:nth-child(4)
downloadvolumefactor:
text: "1"
downloadvolumefactor:
downloadvolumefactor_optional:
selector: td:nth-child(6) > span:nth-last-child(2)
optional: true
filters:
- name: trim
args: "x"
uploadvolumefactor:
text: "1"
uploadvolumefactor:
downloadvolumefactor:
text: "{{ if .Result.downloadvolumefactor_optional }}{{ .Result.downloadvolumefactor_optional }}{{ else }}1{{ end }}"
uploadvolumefactor_optional:
selector: td:nth-child(6) > span:nth-last-child(1)
optional: true
filters:
- name: trim
args: "x"
uploadvolumefactor:
text: "{{ if .Result.uploadvolumefactor_optional }}{{ .Result.uploadvolumefactor_optional }}{{ else }}1{{ end }}"
minimumratio:
text: 0.5
minimumseedtime:

View File

@ -231,15 +231,15 @@ search:
img[alt="Silver 50% Free"]: 0.5
img[alt="Bronze 25% Free"]: 0.75
"*": 1
uploadvolumefactor:
text: 1
uploadvolumefactor:
uploadvolumefactor_optional:
optional: true
selector: img[alt$="x Upload Multiplier"]
attribute: alt
filters:
- name: replace
args: ["x Upload Multiplier", ""]
uploadvolumefactor:
text: "{{ if .Result.uploadvolumefactor_optional }}{{ .Result.uploadvolumefactor_optional }}{{ else }}1{{ end }}"
minimumratio:
text: 0.5
# xbtitFM 3.1.00