engine tags. #6822

This commit is contained in:
Garfield69
2020-01-18 18:26:04 +13:00
parent 5a13b1253d
commit 370a70ba26
12 changed files with 37 additions and 28 deletions

View File

@@ -78,3 +78,4 @@
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a

View File

@@ -241,3 +241,4 @@
uploadvolumefactor: uploadvolumefactor:
case: case:
"*": 1 "*": 1
# engine n/a

View File

@@ -114,3 +114,4 @@
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a

View File

@@ -75,6 +75,7 @@
rows: rows:
selector: table.ttable_headinner tr.t-row selector: table.ttable_headinner tr.t-row
after: 1 after: 1
fields: fields:
category: category:
selector: a[href^="/search.php?cat="] selector: a[href^="/search.php?cat="]
@@ -106,3 +107,4 @@
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a

View File

@@ -311,8 +311,10 @@
incldead: "1" incldead: "1"
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
rows: rows:
selector: table.embedded > tbody > tr:has(a[href^="details.php?id="]) selector: table.embedded > tbody > tr:has(a[href^="details.php?id="])
fields: fields:
title: title:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
@@ -369,3 +371,4 @@
case: case:
img[src="pic/diamond.png"]: 2 img[src="pic/diamond.png"]: 2
"*": 1 "*": 1
# TBDev v2.1.12

View File

@@ -141,3 +141,4 @@
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a

View File

@@ -74,12 +74,14 @@
- path: browseadult.php - path: browseadult.php
categorymappings: [9] categorymappings: [9]
inputs: inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{if .Query.IMDBID}}{{ .Query.IMDBIDShort }}{{else}}{{ .Keywords }}{{end}}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBIDShort }}{{else}}{{ .Keywords }}{{end}}"
incldead: 1 incldead: 1
search_by: "{{ if .Query.IMDBID }}imdb{{else}}name{{end}}" search_by: "{{ if .Query.IMDBID }}imdb{{else}}name{{end}}"
rows: rows:
selector: table.table-striped > tbody > tr:has(a[href^="details.php?id="]) selector: table.table-striped > tbody > tr:has(a[href^="details.php?id="])
fields: fields:
title: title:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
@@ -136,3 +138,4 @@
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a

View File

@@ -53,8 +53,10 @@
# sort torrent-list by age in descending order # sort torrent-list by age in descending order
- path: "{{ if .Keywords }}torrent-list/{{ .Keywords }}?o={{ .Config.sort }}&c={{ range .Categories }}{{.}}{{end}}{{else}}browse.html{{end}}" - path: "{{ if .Keywords }}torrent-list/{{ .Keywords }}?o={{ .Config.sort }}&c={{ range .Categories }}{{.}}{{end}}{{else}}browse.html{{end}}"
- path: "{{ if .Keywords }}torrent-list/{{ .Keywords }}?p=2&o={{ .Config.sort }}&c={{ range .Categories }}{{.}}{{end}}{{else}}browse.html?&p=2{{end}}" - path: "{{ if .Keywords }}torrent-list/{{ .Keywords }}?p=2&o={{ .Config.sort }}&c={{ range .Categories }}{{.}}{{end}}{{else}}browse.html?&p=2{{end}}"
rows: rows:
selector: div.resultdiv selector: div.resultdiv
fields: fields:
title: title:
selector: div.resultdivtop a div.resultdivtopname selector: div.resultdivtop a div.resultdivtopname
@@ -115,3 +117,4 @@
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a

View File

@@ -85,19 +85,19 @@
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "$1 $2"] args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "$1 $2"]
inputs: inputs:
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
category: "{{range .Categories}}{{.}};{{end}}" category: "{{ range .Categories }}{{.}};{{end}}"
page: torrents page: torrents
active: 0 active: 0
rows: rows:
selector: div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href^="index.php?page=torrents&category="]) selector: div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href^="index.php?page=torrents&category="])
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
title: title:
selector: td:nth-child(2) > a selector: td:nth-child(2) > a
filters: filters:
# - name: re_replace # replace special characters with " " (space)
# args: ["[^a-zA-Z0-9\\s]|\\.", " "]
- name: re_replace # replace special characters with " " (space) - name: re_replace # replace special characters with " " (space)
args: ["[\\[!\"#$%&'()*+,\\-.\\/:;<=>?@[\\]^_`{|}~]", " "] args: ["[\\[!\"#$%&'()*+,\\-.\\/:;<=>?@[\\]^_`{|}~]", " "]
- name: diacritics - name: diacritics
@@ -121,7 +121,7 @@
args: ["(?i)\\b(?:Puntate\\s*)(\\d+)\\s?(\\d+)", "E0$1-0$2"] args: ["(?i)\\b(?:Puntate\\s*)(\\d+)\\s?(\\d+)", "E0$1-0$2"]
- name: re_replace # rimozioni varie - name: re_replace # rimozioni varie
args: ["(?i)(Serie completa|Completat?a?|in pausa)", ""] args: ["(?i)(Serie completa|Completat?a?|in pausa)", ""]
download: # handle torrents with normal torrent file download download:
optional: true optional: true
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
@@ -149,9 +149,9 @@
args: "magnet:?xt=urn:btih:" args: "magnet:?xt=urn:btih:"
- name: append - name: append
args: "&dn={{ .Result._magnetfilename }}.torrent" args: "&dn={{ .Result._magnetfilename }}.torrent"
- name: append # add some well known public trackers - name: append
args: "&tr=udp://tracker.openbittorrent.com:80/announce&tr=udp://tracker.opentrackr.org:1337/announce" args: "&tr=udp://tracker.openbittorrent.com:80/announce&tr=udp://tracker.opentrackr.org:1337/announce"
magnet: # in case a direct magnet link is provided use it magnet:
optional: true optional: true
selector: a[href^="magnet:?xt="] selector: a[href^="magnet:?xt="]
attribute: href attribute: href
@@ -164,13 +164,6 @@
details: details:
selector: td:nth-child(2) > a selector: td:nth-child(2) > a
attribute: href attribute: href
# banner:
# optional: true
# selector: td:nth-child(2) > a
# attribute: onmouseover
# filters:
# - name: regexp
# args: "src=(.+?) "
size: size:
selector: td:nth-last-child(2) selector: td:nth-last-child(2)
date: date:
@@ -194,11 +187,7 @@
leechers: leechers:
selector: td:nth-last-child(5) selector: td:nth-last-child(5)
downloadvolumefactor: downloadvolumefactor:
# case: text: 0
# img[src="images/gold.gif"]: "0"
# img[src="images/silver.gif"]: "0.5"
# img[src="images/bronze.gif"]: "0.75"
# "*": "1"
text: "0"
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1
# engine n/a

View File

@@ -7,6 +7,8 @@
encoding: Windows-1252 encoding: Windows-1252
links: links:
- https://ilcorsaronero.pizza/ - https://ilcorsaronero.pizza/
- https://ilcorsaronero.fun/
- https://ilcorsaronero.pro/
legacylinks: legacylinks:
- https://ilcorsaronero.live/ - https://ilcorsaronero.live/
- https://ilcorsaronero.vip/ - https://ilcorsaronero.vip/
@@ -44,16 +46,16 @@
- path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=4{{else}}/browse/4{{end}}" - path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=4{{else}}/browse/4{{end}}"
- path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=5{{else}}/browse/5{{end}}" - path: "{{if .Keywords}}advsearch.php?&category={{range .Categories}}{{.}};{{end}}&search={{ .Keywords}}&order=data&by=DESC&page=5{{else}}/browse/5{{end}}"
keywordsfilters: keywordsfilters:
# - name: diacritics
# args: replace
- name: re_replace # S01 to 1 - name: re_replace # S01 to 1
args: ["(?i)\\bS0*(\\d+)\\b", "$1"] args: ["(?i)\\bS0*(\\d+)\\b", "$1"]
- name: re_replace # S01E01 to 1 1 - name: re_replace # S01E01 to 1 1
args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "$1 $2"] args: ["(?i)\\bS0*(\\d+)E0*(\\d+)\\b", "$1 $2"]
rows: rows:
selector: "tr.odd,tr.odd2" selector: "tr.odd,tr.odd2"
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
title: title:
selector: td:nth-child(2) a.tab selector: td:nth-child(2) a.tab
@@ -64,8 +66,6 @@
- name: diacritics - name: diacritics
args: replace args: replace
- name: urldecode - name: urldecode
# - name: re_replace # replace special characters with " " (space)
# args: ["[^a-zA-Z0-9\\s]|\\.", " "]
- name: re_replace # replace special characters with " " (space) - name: re_replace # replace special characters with " " (space)
args: ["[\\[!\"#$%&'()*+,\\-.\\/:;<=>?@[\\]^_`{|}~]", " "] args: ["[\\[!\"#$%&'()*+,\\-.\\/:;<=>?@[\\]^_`{|}~]", " "]
- name: re_replace # replace multiple spaces - name: re_replace # replace multiple spaces
@@ -132,6 +132,7 @@
- name: replace - name: replace
args: ["n/a", "0"] args: ["n/a", "0"]
downloadvolumefactor: downloadvolumefactor:
text: "0" text: 0
uploadvolumefactor: uploadvolumefactor:
text: "1" text: 1
# engine n/a

View File

@@ -102,3 +102,4 @@
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a

View File

@@ -49,10 +49,12 @@
search: search:
paths: paths:
- path: "torrentek/title/{{ .Keywords }}/order/{{ .Config.sort }}/by/{{ .Config.type }}/" - path: "torrentek/title/{{ .Keywords }}/order/{{ .Config.sort }}/by/{{ .Config.type }}/"
rows: rows:
selector: tr.gradeX selector: tr.gradeX
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
category: category:
selector: td:nth-child(1) i selector: td:nth-child(1) i
@@ -96,3 +98,4 @@
text: 0 text: 0
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a