assorted yml: code tidy

This commit is contained in:
Garfield69
2020-11-13 09:40:19 +13:00
parent c854a91b99
commit 3e45a7f127
9 changed files with 64 additions and 63 deletions

View File

@@ -53,7 +53,7 @@ settings:
- name: info - name: info
type: info type: info
label: Results Per Page label: Results Per Page
default: For best results, change the 'Torrentliste' setting to "Platzsparendes Layout mit PopUp für zusätzliche Informationen" in your profile. default: For best results, change the <b>Torrentliste</b> setting to <i>Platzsparendes Layout mit PopUp für zusätzliche Informationen</i> in your profile.
login: login:
path: takelogin.php path: takelogin.php
@@ -70,13 +70,14 @@ search:
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}" $raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}" search: "{{ .Keywords }}"
incldead: "0" incldead: 0
orderby: "added" orderby: added
sort: "desc" sort: desc
rows: rows:
selector: table.tableinborder > tbody > tr:has(a[href^="details.php"]) selector: table.tableinborder > tbody > tr:has(a[href^="details.php"])
fields: # note: two alternative layouts available fields: # note: two alternative layouts available
title: title:
selector: a[href^="details.php"] selector: a[href^="details.php"]
@@ -117,15 +118,15 @@ search:
- name: replace - name: replace
args: [" ", ""] args: [" ", ""]
- name: append - name: append
args: " +2:00" args: " +2:00" # EET
- name: replace - name: replace
args: ["\xA0", ""] args: ["\xA0", ""]
- name: dateparse - name: dateparse
args: "02.01.200615:04:05 -07:00" args: "02.01.200615:04:05 -07:00"
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src="/pic/free.gif"]: "0" img[src="/pic/free.gif"]: 0
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": "1" # engine tbd

View File

@@ -205,7 +205,7 @@ search:
- name: regexp - name: regexp
args: "(\\d{2}\\/\\d{2}\\/\\d{2} \\d{2}:\\d{2}:\\d{2})" args: "(\\d{2}\\/\\d{2}\\/\\d{2} \\d{2}:\\d{2}:\\d{2})"
- name: append - name: append
args: " -03:00" args: " -03:00" # BRT
- name: dateparse - name: dateparse
args: "02/01/06 15:04:05 -07:00" args: "02/01/06 15:04:05 -07:00"
size: size:

View File

@@ -65,17 +65,25 @@ search:
- name: re_replace - name: re_replace
args: ["(?:^|\\s)[_\\+\\/\\.\\-\\(\\)]*[\\S]{0,3}[_\\+\\/\\.\\-\\(\\)]*(?:\\s|$)", " "] args: ["(?:^|\\s)[_\\+\\/\\.\\-\\(\\)]*[\\S]{0,3}[_\\+\\/\\.\\-\\(\\)]*(?:\\s|$)", " "]
inputs: inputs:
do: "search" do: search
keywords: "{{ .Keywords }}" keywords: "{{ .Keywords }}"
search_type: "t_name" search_type: t_name
category: "0" # multi cat search not supported category: 0 # multi cat search not supported
include_dead_torrents: "yes" include_dead_torrents: yes
rows: rows:
selector: table#sortabletable > tbody > tr:has(a[href*="/details.php?id="]) selector: table#sortabletable > tbody > tr:has(a[href*="/details.php?id="])
filters: filters:
- name: andmatch - name: andmatch
args: 66 args: 66
fields: fields:
category:
selector: a[href*="/browse.php?category="]
attribute: href
filters:
- name: querystring
args: category
title: title:
selector: a[href*="/details.php?id="] selector: a[href*="/details.php?id="]
title: title:
@@ -90,12 +98,6 @@ search:
magnet: magnet:
selector: a[href^="magnet:?xt="] selector: a[href^="magnet:?xt="]
attribute: href attribute: href
category:
selector: a[href*="/browse.php?category="]
attribute: href
filters:
- name: querystring
args: category
size: size:
selector: td:nth-child(5) selector: td:nth-child(5)
grabs: grabs:
@@ -109,7 +111,7 @@ search:
remove: span remove: span
filters: filters:
- name: append - name: append
args: " +00:00" args: " +00:00" # GMT
- name: dateparse - name: dateparse
args: "02-01-2006 15:04 -07:00" args: "02-01-2006 15:04 -07:00"
poster: poster:
@@ -118,9 +120,9 @@ search:
attribute: src attribute: src
downloadvolumefactor: downloadvolumefactor:
case: case:
img[alt^="Free Torrent "]: "0" img[alt^="Free Torrent "]: 0
img[alt^="Silver Torrent "]: "0.5" img[alt^="Silver Torrent "]: 0.5
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": "1" # engine tbd

View File

@@ -114,7 +114,6 @@ search:
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
imdb: imdb:
optional: true
selector: div.imdb_100 > a selector: div.imdb_100 > a
attribute: href attribute: href
date: date:
@@ -124,7 +123,7 @@ search:
optional: true optional: true
filters: filters:
- name: append - name: append
args: " +08:00" 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:
@@ -133,7 +132,7 @@ search:
optional: true optional: true
filters: filters:
- name: append - name: append
args: " +08:00" args: " +08:00" # CST
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
size: size:

View File

@@ -13,7 +13,6 @@ legacylinks:
caps: caps:
categorymappings: categorymappings:
# Movies
- {id: 11, cat: Movies/HD, desc: "DSS"} - {id: 11, cat: Movies/HD, desc: "DSS"}
- {id: 1, cat: Movies, desc: "Screener"} - {id: 1, cat: Movies, desc: "Screener"}
- {id: 2, cat: Movies, desc: "DVDRip & BDRip"} - {id: 2, cat: Movies, desc: "DVDRip & BDRip"}
@@ -21,17 +20,11 @@ caps:
- {id: 5, cat: Movies/UHD, desc: "Ultra HD 4K"} - {id: 5, cat: Movies/UHD, desc: "Ultra HD 4K"}
- {id: 6, cat: TV, desc: "Serie TV"} - {id: 6, cat: TV, desc: "Serie TV"}
- {id: 4, cat: TV/Anime, desc: "Cartoni"} - {id: 4, cat: TV/Anime, desc: "Cartoni"}
# GAMES
- {id: 7, cat: PC/Games, desc: "Giochi"} - {id: 7, cat: PC/Games, desc: "Giochi"}
# MUSIC
- {id: 8, cat: Audio, desc: "Musica"} - {id: 8, cat: Audio, desc: "Musica"}
# SOFTWARE
- {id: 9, cat: PC/0day, desc: "Software"} - {id: 9, cat: PC/0day, desc: "Software"}
# PHONE
- {id: 12, cat: PC/Mobile-Other, desc: "Applicazioni"} - {id: 12, cat: PC/Mobile-Other, desc: "Applicazioni"}
# OTHER
- {id: 14, cat: Other, desc: "Varie & Altro"} - {id: 14, cat: Other, desc: "Varie & Altro"}
# EBOOK
- {id: 13, cat: Books, desc: "Libri & Edicola"} - {id: 13, cat: Books, desc: "Libri & Edicola"}
modes: modes:
@@ -80,7 +73,7 @@ search:
active: 0 active: 0
rows: rows:
selector: table > tbody > tr > td > table.lista > tbody > tr:has(a[href^="index.php?page=torrent-details&id="]){{if .Config.donor }}{{else}}:not(:has(img[src*="keditbookmarks.png"])){{end}} selector: table > tbody > tr > td > table.lista > tbody > tr:has(a[href^="index.php?page=torrent-details&id="]){{ if .Config.donor }}{{ else }}:not(:has(img[src*="keditbookmarks.png"])){{ end }}
fields: fields:
download: download:
@@ -115,7 +108,7 @@ search:
selector: td:nth-last-child(8) selector: td:nth-last-child(8)
filters: filters:
- name: append - name: append
args: " +01:00" args: " +01:00" # CET
- name: dateparse - name: dateparse
args: "02/01/2006 -07:00" args: "02/01/2006 -07:00"
grabs: grabs:

View File

@@ -86,7 +86,7 @@ search:
# https://tc-boxing.com/browse.php?search=tyson&cat=0&incldead=1 # https://tc-boxing.com/browse.php?search=tyson&cat=0&incldead=1
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{ if .Categories }}{{ range .Categories }}c{{.}}=1&{{end}}{{else}}cat=0{{end}}" $raw: "{{ if .Categories }}{{ range .Categories }}c{{.}}=1&{{end}}{{ else }}cat=0{{ end }}"
# 1 incldead, null active # 1 incldead, null active
incldead: 1 incldead: 1
# 1 freeleech only, null all # 1 freeleech only, null all

View File

@@ -7,17 +7,6 @@ type: private
encoding: ISO-8859-2 encoding: ISO-8859-2
links: links:
- https://btgigs.info/ - https://btgigs.info/
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: lang
type: checkbox
label: Add POLISH to title if is in polish category
default: false
caps: caps:
categorymappings: categorymappings:
@@ -52,6 +41,18 @@ caps:
music-search: [q] music-search: [q]
book-search: [q] book-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: lang
type: checkbox
label: Add POLISH to title if is in polish category
default: false
login: login:
path: takelogin_action.php path: takelogin_action.php
method: post method: post
@@ -72,14 +73,22 @@ search:
- selector: a.altlink - selector: a.altlink
inputs: inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}" $raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}" search: "{{ .Keywords }}"
incldead: 1 incldead: 1
tyt: 0 tyt: 0
lang: 0 lang: 0
subcat: 0 subcat: 0
rows: rows:
selector: table[border="1"][cellpadding=5] > tbody > tr:has(a[href^="details.php?id="]) selector: table[border="1"][cellpadding=5] > tbody > tr:has(a[href^="details.php?id="])
fields: fields:
category:
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
is_polish: is_polish:
optional: true optional: true
selector: img[src*="cat_pl"] selector: img[src*="cat_pl"]
@@ -92,16 +101,10 @@ search:
- name: append - name: append
args: " POLISH" args: " POLISH"
title: title:
text: "{{ if and (.Config.lang) (.Result.is_polish) }}{{ .Result.title_polish }}{{else}}{{ .Result.title_phase1 }}{{end}}" text: "{{ if and (.Config.lang) (.Result.is_polish) }}{{ .Result.title_polish }}{{ else }}{{ .Result.title_phase1 }}{{ end }}"
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
category:
selector: a[href^="browse.php?cat="]
attribute: href
filters:
- name: querystring
args: cat
download: download:
selector: a[href^="download.php/"] selector: a[href^="download.php/"]
attribute: href attribute: href
@@ -115,13 +118,13 @@ search:
- name: prepend - name: prepend
args: "{{ .Result.description }}" args: "{{ .Result.description }}"
imdb: imdb:
optional: true
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href
date: date:
selector: td:nth-child(5) selector: td:nth-child(5)
filters: filters:
- name: append - name: append
args: " +00:00" args: " +00:00" # auto adjusted by site account profile
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05 -07:00" args: "2006-01-0215:04:05 -07:00"
grabs: grabs:
@@ -141,4 +144,5 @@ search:
"img[src=\"pic/ico_disk2.png\"]": 1 "img[src=\"pic/ico_disk2.png\"]": 1
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1
# engine tbd

View File

@@ -94,7 +94,7 @@ search:
attribute: title attribute: title
filters: filters:
- name: append - name: append
args: " +08:00" 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"
size: size:

View File

@@ -45,8 +45,10 @@ download:
search: search:
paths: paths:
- path: "search/{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}" - path: "search/{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
rows: rows:
selector: div.row:has(a[href*="/detail/hash/"]) selector: div.row:has(a[href*="/detail/hash/"])
fields: fields:
category: category:
text: Other text: Other