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

This commit is contained in:
Garfield69
2021-10-25 09:30:33 +13:00
parent 2816a5d35a
commit 14ffab1f9e
18 changed files with 61 additions and 55 deletions

View File

@@ -116,7 +116,7 @@ search:
selector: a[href$="/peers"] span.text-red selector: a[href$="/peers"] span.text-red
grabs: grabs:
selector: a[href$="/history"] selector: a[href$="/history"]
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
tmdbid: tmdbid:

View File

@@ -96,7 +96,7 @@ search:
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
poster: poster:

View File

@@ -121,7 +121,7 @@ search:
download: download:
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
date_elapsed: date_elapsed:

View File

@@ -102,7 +102,7 @@ search:
download: download:
selector: a[href^="download.php?"] selector: a[href^="download.php?"]
attribute: href attribute: href
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
date_elapsed: date_elapsed:

View File

@@ -164,7 +164,7 @@ search:
args: " +08:00" # CST args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
imdb: imdbid:
selector: span.imdb_rate > a selector: span.imdb_rate > a
attribute: href attribute: href
downloadvolumefactor: downloadvolumefactor:

View File

@@ -113,19 +113,21 @@ search:
filters: filters:
- name: querystring - name: querystring
args: cat args: cat
title: title_default:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
title: title_optional:
optional: true optional: true
selector: a[title][href^="details.php?id="] selector: a[title][href^="details.php?id="]
attribute: title attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
download: download:
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
date: date_elapsed:
# time type: time elapsed (default) # time type: time elapsed (default)
selector: td:nth-child(4) > time[title] selector: td:nth-child(4) > time[title]
attribute: title attribute: title
@@ -135,7 +137,7 @@ search:
args: " +08:00" # CST args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-02 15:04:05 -07:00" args: "2006-01-02 15:04:05 -07:00"
date: date_added:
# time added # time added
selector: td:nth-child(4):not(time[title]) > time selector: td:nth-child(4):not(time[title]) > time
optional: true optional: true
@@ -144,6 +146,8 @@ search:
args: " +08:00" # CST args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
date:
text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
size: size:
selector: td:nth-child(5) selector: td:nth-child(5)
seeders: seeders:

View File

@@ -166,10 +166,10 @@ search:
poster: poster:
selector: td.torrent_image div.relativeDiv div:not(.category_image) a, .previewImage a selector: td.torrent_image div.relativeDiv div:not(.category_image) a, .previewImage a
attribute: href attribute: href
imdb: imdbid:
selector: .torrentFlags a[href*="www.imdb.com/title/tt"] selector: .torrentFlags a[href*="www.imdb.com/title/tt"]
attribute: href attribute: href
date: date1:
selector: td.torrent_name:contains("Subido"):contains("-"), .torrentOwner:contains("Subido"):contains("-") selector: td.torrent_name:contains("Subido"):contains("-"), .torrentOwner:contains("Subido"):contains("-")
optional: true optional: true
filters: filters:
@@ -181,7 +181,7 @@ search:
args: " +00:00" # auto adjusted by site account profile args: " +00:00" # auto adjusted by site account profile
- name: dateparse - name: dateparse
args: "02-01-2006 15:04 -07:00" args: "02-01-2006 15:04 -07:00"
date: date2:
selector: td.torrent_name:contains("Subido"):not(:contains("-")), .torrentOwner:contains("Subido"):not(:contains("-")) selector: td.torrent_name:contains("Subido"):not(:contains("-")), .torrentOwner:contains("Subido"):not(:contains("-"))
optional: true optional: true
filters: filters:
@@ -210,7 +210,7 @@ search:
- name: replace - name: replace
args: ["Domingo a", "Sunday at"] args: ["Domingo a", "Sunday at"]
- name: fuzzytime # eg: Yesterday 14:22 or Monday at 14:22 - name: fuzzytime # eg: Yesterday 14:22 or Monday at 14:22
date: date3:
selector: td.torrent_name:contains("Uploaded"):contains("-"), .torrentOwner:contains("Uploaded"):contains("-") selector: td.torrent_name:contains("Uploaded"):contains("-"), .torrentOwner:contains("Uploaded"):contains("-")
optional: true optional: true
filters: filters:
@@ -220,7 +220,7 @@ search:
args: " +00:00" # auto adjusted by site account profile args: " +00:00" # auto adjusted by site account profile
- name: dateparse - name: dateparse
args: "02-01-2006 15:04 -07:00" args: "02-01-2006 15:04 -07:00"
date: date4:
selector: td.torrent_name:contains("Uploaded"):not(:contains("-")), .torrentOwner:contains("Uploaded"):not(:contains("-")) selector: td.torrent_name:contains("Uploaded"):not(:contains("-")), .torrentOwner:contains("Uploaded"):not(:contains("-"))
optional: true optional: true
filters: filters:
@@ -231,6 +231,8 @@ search:
- name: replace - name: replace
args: ["Today at", "Today"] args: ["Today at", "Today"]
- name: fuzzytime # eg: Yesterday 14:22 or Monday at 14:22 - name: fuzzytime # eg: Yesterday 14:22 or Monday at 14:22
date:
text: "{{ if or .Result.date1 .Result.date2 .Result.date3 .Result.date4 }}{{ or .Result.date1 .Result.date2 .Result.date3 .Result.date4 }}{{ else }}now{{ end }}"
size: size:
selector: td.size a, .torrentInfo a[rel="torrent_size"] selector: td.size a, .torrentInfo a[rel="torrent_size"]
grabs: grabs:

View File

@@ -52,15 +52,9 @@ search:
attribute: src attribute: src
description: description:
selector: div.cat-links selector: div.cat-links
optional: true
date: date:
selector: time selector: time
attribute: datetime attribute: datetime
filters:
- name: replace
args: ["T", " "]
- name: dateparse
args: "2006-01-02 15:04:05-07:00"
size: size:
text: "512 MB" text: "512 MB"
seeders: seeders:

View File

@@ -9,6 +9,7 @@ links:
- https://world-in-hd.net/ - https://world-in-hd.net/
caps: caps:
# dont forget to update the search fields category (and size) case block(s)
categorymappings: categorymappings:
- {id: 565af82b1fd35761568b4572, cat: Movies/HD, desc: "1080p"} - {id: 565af82b1fd35761568b4572, cat: Movies/HD, desc: "1080p"}
- {id: 565af82b1fd35761568b4574, cat: Movies/HD, desc: "720p"} - {id: 565af82b1fd35761568b4574, cat: Movies/HD, desc: "720p"}

View File

@@ -101,7 +101,7 @@ search:
filters: filters:
- name: regexp - name: regexp
args: src="(.+?)" args: src="(.+?)"
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
size: size:

View File

@@ -304,11 +304,11 @@ search:
selector: td:nth-child(7) a selector: td:nth-child(7) a
leechers: leechers:
selector: td:nth-child(8) a selector: td:nth-child(8) a
grabs: grabs_optional:
text: 0
grabs:
selector: td:nth-child(9) a selector: td:nth-child(9) a
optional: true optional: true
grabs:
text: "{{ if .Result.grabs_optional }}{{ .Result.grabs_optional }}{{ else }}0{{ end }}"
date: date:
selector: td:nth-child(6) selector: td:nth-child(6)
filters: filters:

View File

@@ -105,22 +105,24 @@ search:
filters: filters:
- name: querystring - name: querystring
args: cat args: cat
title: title_default:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
title: title_optional:
optional: true optional: true
selector: a[title][href^="details.php?id="] selector: a[title][href^="details.php?id="]
attribute: title attribute: title
title:
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
download: download:
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
date: date_elapsed:
# time type: time elapsed (default) # time type: time elapsed (default)
selector: td:nth-child(4) > span[title] selector: td:nth-child(4) > span[title]
attribute: title attribute: title
@@ -130,7 +132,7 @@ search:
args: " +08:00" # CST args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-02 15:04:05 -07:00" args: "2006-01-02 15:04:05 -07:00"
date: date_added:
# time added # time added
selector: td:nth-child(4):not(:has(span)) selector: td:nth-child(4):not(:has(span))
optional: true optional: true
@@ -139,6 +141,8 @@ search:
args: " +08:00" # CST args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
date:
text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
size: size:
selector: td:nth-child(5) selector: td:nth-child(5)
seeders: seeders:

View File

@@ -114,7 +114,6 @@ settings:
- name: useragent - name: useragent
type: text type: text
label: User-Agent label: User-Agent
label: User-Agent
- name: info_useragent - name: info_useragent
type: info type: info
label: How to get the User-Agent label: How to get the User-Agent
@@ -335,16 +334,16 @@ search:
args: ["o", "B"] args: ["o", "B"]
grabs: grabs:
selector: td:nth-child(7) selector: td:nth-child(7)
seeders: seeders_optional:
text: 0
seeders:
selector: td:nth-child(8) selector: td:nth-child(8)
optional: true optional: true
leechers: seeders:
text: 0 text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers: leechers_optional:
selector: td:nth-child(9) selector: td:nth-child(9)
optional: true optional: true
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
downloadvolumefactor: downloadvolumefactor:
text: 1 text: 1
uploadvolumefactor: uploadvolumefactor:

View File

@@ -343,16 +343,16 @@ search:
args: ["o", "B"] args: ["o", "B"]
grabs: grabs:
selector: td:nth-child(7) selector: td:nth-child(7)
seeders: seeders_optional:
text: 0
seeders:
selector: td:nth-child(8) selector: td:nth-child(8)
optional: true optional: true
leechers: seeders:
text: 0 text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers: leechers_optional:
selector: td:nth-child(9) selector: td:nth-child(9)
optional: true optional: true
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
downloadvolumefactor: downloadvolumefactor:
text: 1 text: 1
uploadvolumefactor: uploadvolumefactor:

View File

@@ -80,7 +80,7 @@ search:
args: ".torrent" args: ".torrent"
size: size:
selector: td:nth-child(3) selector: td:nth-child(3)
date: date_day:
selector: td:nth-child(4):not(:contains("/")) selector: td:nth-child(4):not(:contains("/"))
optional: true optional: true
filters: filters:
@@ -89,7 +89,7 @@ search:
- name: replace - name: replace
args: ["Yesterday", "1 day"] args: ["Yesterday", "1 day"]
- name: timeago - name: timeago
date: date_year:
selector: td:nth-child(4):contains("/") selector: td:nth-child(4):contains("/")
optional: true optional: true
filters: filters:
@@ -97,6 +97,8 @@ search:
args: " -07:00" # PDT args: " -07:00" # PDT
- name: dateparse - name: dateparse
args: "02/01/06 -07:00" args: "02/01/06 -07:00"
date:
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
seeders: seeders:
selector: td:nth-child(5) selector: td:nth-child(5)
leechers: leechers:

View File

@@ -95,7 +95,7 @@ search:
selector: hash selector: hash
poster: poster:
selector: ..large_cover_image selector: ..large_cover_image
imdb: imdbid:
selector: ..imdb_code selector: ..imdb_code
date: date:
selector: date_uploaded_unix selector: date_uploaded_unix

View File

@@ -131,9 +131,7 @@ search:
# a size of ' N/A ' causes Jackett to reject the row with an error # a size of ' N/A ' causes Jackett to reject the row with an error
- name: replace - name: replace
args: [" N/A ", "0 Bytes"] args: [" N/A ", "0 Bytes"]
seeders: seeders_optional:
text: 0
seeders:
# seeders can be missing # seeders can be missing
optional: true optional: true
selector: td:nth-child(6) div selector: td:nth-child(6) div
@@ -143,9 +141,9 @@ search:
args: [" ", 1] args: [" ", 1]
- name: replace - name: replace
args: [",", ""] args: [",", ""]
leechers: seeders:
text: 0 text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers: leechers_optional:
# leechers can be missing # leechers can be missing
optional: true optional: true
selector: td:nth-child(6) div selector: td:nth-child(6) div
@@ -155,6 +153,8 @@ search:
args: [" ", 4] args: [" ", 4]
- name: replace - name: replace
args: [",", ""] args: [",", ""]
leechers:
text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
downloadvolumefactor: downloadvolumefactor:
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:

View File

@@ -143,17 +143,17 @@ search:
filters: filters:
- name: regexp - name: regexp
args: img src=\\'(.*?)\\' args: img src=\\'(.*?)\\'
imdb: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
files: files:
selector: td:nth-child(5) selector: td:nth-child(5)
size: size_optional:
text: 0
size:
selector: td:nth-child(11):has(b) selector: td:nth-child(11):has(b)
optional: true optional: true
remove: b remove: b
size:
text: "{{ if .Result.size_optional }}{{ .Result.size_optional }}{{ else }}0 B{{ end }}"
seeders: seeders:
selector: td:nth-child(7) selector: td:nth-child(7)
leechers: leechers: