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
uploadvolumefactor:
text: 1
# engine n/a

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -53,8 +53,10 @@
# 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 }}?p=2&o={{ .Config.sort }}&c={{ range .Categories }}{{.}}{{end}}{{else}}browse.html?&p=2{{end}}"
rows:
selector: div.resultdiv
fields:
title:
selector: div.resultdivtop a div.resultdivtopname
@ -115,3 +117,4 @@
text: 0
uploadvolumefactor:
text: 1
# engine n/a

View File

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

View File

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

View File

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

View File

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