mirror of https://github.com/Jackett/Jackett
assorted: conform to yaml standards by avoiding duplicate keys #11917
This commit is contained in:
parent
715a14ed30
commit
1301bed0ab
|
@ -111,6 +111,7 @@ search:
|
|||
categories: ["!", 60, 27]
|
||||
- path: browseadult.php
|
||||
categories: [60, 27]
|
||||
|
||||
inputs:
|
||||
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
|
||||
search: "{{ .Keywords }}"
|
||||
|
@ -121,6 +122,7 @@ search:
|
|||
only_free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
|
||||
sort: "{{ .Config.sort }}"
|
||||
type: "{{ .Config.type }}"
|
||||
|
||||
keywordsfilters:
|
||||
- name: re_replace
|
||||
args: ["(\\w+)", " +$1"] # prepend + to each word
|
||||
|
@ -145,17 +147,11 @@ search:
|
|||
attribute: onmouseover
|
||||
filters:
|
||||
- name: regexp
|
||||
args: src=\\'(http.+?\.jpg)\\'
|
||||
poster:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: onmouseover
|
||||
filters:
|
||||
- name: regexp
|
||||
args: src=\\'(http.+?\.png)\\'
|
||||
args: src=\\'(.+?)\\'
|
||||
download:
|
||||
selector: a[href^="download.php"]
|
||||
attribute: href
|
||||
date:
|
||||
date_year:
|
||||
selector: td:nth-child(4) span:not(:contains("day"))
|
||||
optional: true
|
||||
filters:
|
||||
|
@ -163,13 +159,15 @@ search:
|
|||
args: " +00:00" # auto adjusted by site account profile
|
||||
- name: dateparse
|
||||
args: "Jan 2 2006 03:04 PM -07:00"
|
||||
date:
|
||||
date_day:
|
||||
selector: td:nth-child(4) span:contains("day")
|
||||
optional: true
|
||||
filters:
|
||||
- name: append
|
||||
args: " +00:00" # auto adjusted by site account profile
|
||||
- name: fuzzytime
|
||||
date:
|
||||
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
|
||||
size:
|
||||
selector: td:nth-child(5)
|
||||
grabs:
|
||||
|
|
|
@ -108,7 +108,7 @@ search:
|
|||
filters:
|
||||
- name: regexp
|
||||
args: "/categories/(\\d+)"
|
||||
title:
|
||||
title_vose:
|
||||
selector: a.view-torrent:contains("VOSE")
|
||||
optional: true
|
||||
filters:
|
||||
|
@ -120,7 +120,7 @@ search:
|
|||
args: ["UHDRip", "BDRip"] # Fix for Radarr
|
||||
- name: append
|
||||
args: " ENGLiSH"
|
||||
title:
|
||||
title_notvose:
|
||||
selector: a.view-torrent:not(:contains("VOSE"))
|
||||
optional: true
|
||||
filters:
|
||||
|
@ -132,6 +132,8 @@ search:
|
|||
args: ["UHDRip", "BDRip"] # Fix for Radarr
|
||||
- name: append
|
||||
args: " SPANiSH"
|
||||
title:
|
||||
text: "{{ if .Result.title_vose }}{{ .Result.title_vose }}{{ else }}{{ .Result.title_notvose }}{{ end }}"
|
||||
download:
|
||||
selector: a[href*="/download/"]
|
||||
attribute: href
|
||||
|
|
|
@ -189,10 +189,7 @@ search:
|
|||
size:
|
||||
selector: td:nth-child(8)
|
||||
remove: b
|
||||
filters:
|
||||
- name: replace
|
||||
args: [" x time(s)", ""]
|
||||
date:
|
||||
date_day:
|
||||
selector: td:nth-child(2):contains("day ")
|
||||
optional: true
|
||||
remove: a, b, img, span
|
||||
|
@ -200,7 +197,7 @@ search:
|
|||
- name: append
|
||||
args: " +00:00" # auto adjusted by site account profile
|
||||
- name: fuzzytime
|
||||
date:
|
||||
date_year:
|
||||
# 2021-07-16 09:30 PM
|
||||
selector: td:nth-child(2):not(:contains("day "))
|
||||
optional: true
|
||||
|
@ -210,6 +207,8 @@ search:
|
|||
args: " +00:00" # auto adjusted by site account profile
|
||||
- name: dateparse
|
||||
args: "2006-01-02 03:04 PM -07:00"
|
||||
date:
|
||||
text: "{{ if or .Result.date_year .Result.date_day }}{{ or .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
|
||||
minimumratio:
|
||||
text: 1.0
|
||||
# TS Special Edition
|
||||
|
|
|
@ -149,18 +149,20 @@ search:
|
|||
selector: a[rel="torrent_seeders"]
|
||||
leechers:
|
||||
selector: a[rel="torrent_leechers"]
|
||||
date:
|
||||
date_time:
|
||||
selector: div.torrentOwner abbr
|
||||
optional: true
|
||||
attribute: data-time
|
||||
date:
|
||||
date_day:
|
||||
selector: div.torrentOwner:contains("day")
|
||||
optional: true
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "Uploaded (.+?) by"
|
||||
- name: append
|
||||
args: " +00:00" # auto adjusted by site account profile
|
||||
- name: fuzzytime
|
||||
date:
|
||||
date_year:
|
||||
selector: div.torrentOwner:contains("-")
|
||||
optional: true
|
||||
filters:
|
||||
|
@ -170,6 +172,8 @@ search:
|
|||
args: " +00:00" # auto adjusted by site account profile
|
||||
- name: dateparse
|
||||
args: "02-01-2006 15:04 -07:00"
|
||||
date:
|
||||
text: "{{ if or .Result.date_time .Result.date_year .Result.date_day }}{{ or .Result.date_time .Result.date_year .Result.date_day }}{{ else }}now{{ end }}"
|
||||
downloadvolumefactor:
|
||||
case:
|
||||
img[src$="/torrent_free.png"]: 0
|
||||
|
|
|
@ -88,12 +88,14 @@ search:
|
|||
filters:
|
||||
- name: regexp
|
||||
args: "cat_(.+?)$"
|
||||
title:
|
||||
title_default:
|
||||
selector: a[href^="details_"] > b
|
||||
title:
|
||||
title_optional:
|
||||
optional: true
|
||||
selector: a[title][href^="details_"]
|
||||
attribute: title
|
||||
title:
|
||||
text: "{{ if .Result.title_optional }}{{ .Result.title_optional }}{{ else }}{{ .Result.title_default }}{{ end }}"
|
||||
details:
|
||||
selector: a[href^="details_"]
|
||||
attribute: href
|
||||
|
@ -103,7 +105,7 @@ search:
|
|||
imdb:
|
||||
selector: a[href*="imdb.com/title/tt"]
|
||||
attribute: href
|
||||
date:
|
||||
date_elapsed:
|
||||
# time type: time elapsed (default)
|
||||
selector: td:nth-last-child(7) > span[title]
|
||||
attribute: title
|
||||
|
@ -113,7 +115,7 @@ search:
|
|||
args: " +08:00" # CST
|
||||
- name: dateparse
|
||||
args: "2006-01-02 15:04:05 -07:00"
|
||||
date:
|
||||
date_added:
|
||||
# time added
|
||||
selector: td:nth-last-child(7):not(:has(span[title])):not(:has(a))
|
||||
optional: true
|
||||
|
@ -122,6 +124,8 @@ search:
|
|||
args: " +08:00" # CST
|
||||
- name: dateparse
|
||||
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:
|
||||
selector: td:nth-last-child(6)
|
||||
seeders:
|
||||
|
|
|
@ -101,9 +101,6 @@ search:
|
|||
selector: td:nth-last-child(6)
|
||||
grabs:
|
||||
selector: td:nth-last-child(5)
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "(\\d+) x"
|
||||
seeders:
|
||||
selector: td:nth-last-child(4)
|
||||
leechers:
|
||||
|
|
|
@ -348,7 +348,7 @@ search:
|
|||
details:
|
||||
selector: a[href^="index.php?page=torrent-details&id="][title]
|
||||
attribute: href
|
||||
infohash: # magnet link is auto generated from infohash
|
||||
infohash:
|
||||
selector: a[href^="index.php?page=torrent-details&id="][title]
|
||||
attribute: href
|
||||
filters:
|
||||
|
|
Loading…
Reference in New Issue