engine tags. #6822

This commit is contained in:
Garfield69 2020-01-21 19:00:36 +13:00
parent bf7f5d4fd8
commit 5bd4f7c364
10 changed files with 23 additions and 33 deletions

View File

@ -169,4 +169,5 @@
uploadvolumefactor:
case:
"b:contains(\"[Free and Double]\")": 2
"*": 1
"*": 1
# U-232 V4

View File

@ -531,3 +531,4 @@
"*": 1
uploadvolumefactor:
text: 1
# TorrentPier

View File

@ -116,6 +116,7 @@
rows:
selector: tr.dataList-row:has(td.download)
fields:
category:
selector: a[href^="/index.php?forums/"]
@ -144,8 +145,8 @@
selector: td:nth-last-child(1)
downloadvolumefactor:
case:
"span.label:contains(\"Freeleech\")": "0"
"*": "1"
"span.label:contains(\"Freeleech\")": 0
"*": 1
uploadvolumefactor:
case:
"*": "1"
text: 1
# engine n/a

View File

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

View File

@ -213,5 +213,5 @@
img[src="free.gif"]: 0
"*": 1
uploadvolumefactor:
case:
"*": 1
text: 1
# Btdev,U232

View File

@ -94,15 +94,17 @@
search:
paths:
- path: "{{if .Query.Keywords}}/search/{{ .Keywords}}/0/{{ .Config.order }}/{{join .Categories \",\"}}{{else}}/recent{{end}}"
- path: "{{ if .Keywords }}/search/{{ .Keywords }}/0/{{ .Config.order }}/{{ join .Categories \",\"}}{{else}}/recent{{end}}"
keywordsfilters:
# currently, the only uploader for General Hospital puts a space between season and episode
# this filter searches both formats, so "General Hospital S01E02" becomes "General Hospital S01E02 | (S01 E02)"
- name: re_replace
args: ["General Hospital S(\\d{2,3})E(\\d{2,3})", "$0 | \\(S$1 E$2\\)"]
- name: tolower
rows:
selector: "#searchResult tbody tr:has(td.vertTh)"
fields:
category: # parent category
selector: td:nth-child(1) a:first-child
@ -169,6 +171,7 @@
leechers:
selector: td:nth-child(4)
downloadvolumefactor:
text: "0"
text: 0
uploadvolumefactor:
text: "1"
text: 1
# engine n/a

View File

@ -169,3 +169,4 @@
description:
selector: td:nth-child(2)
remove: a, img
# NexusPHP Standard v1.5 Beta 4

View File

@ -36,7 +36,7 @@
search:
paths:
- path: "{{if .Keywords }}search.php{{else}}index.php{{end}}"
- path: "{{ if .Keywords }}search.php{{else}}index.php{{end}}"
inputs:
terms: "{{ .Keywords }}"
type: "{{ .Config.type-id }}"
@ -45,6 +45,7 @@
rows:
selector: "table.listing tr.category_0"
after: 1
fields:
category:
selector: a[href*="?cat="]
@ -90,3 +91,4 @@
text: 0
uploadvolumefactor:
text: 1
# Engine n/a

View File

@ -62,3 +62,4 @@
text: 0
uploadvolumefactor:
text: 1
# Engine n/a

View File

@ -50,28 +50,6 @@
search:
paths:
- path: "{{if .Keywords}}/all/torrents/{{ .Keywords }}.html?sort={{ .Config.sort }}&order={{ .Config.type }}{{else}}/fresh.html{{end}}"
# - path: "{{if .Keywords}}/television/torrents/{{ .Keywords }}.html{{else}}/television/1/added/desc.html{{end}}"
# categorymappings: [TELEVISION]
# - path: "{{if .Keywords}}/movies/torrents/{{ .Keywords }}.html{{else}}/movies/1/added/desc.html{{end}}"
# categorymappings: [MOVIES]
# - path: "{{if .Keywords}}/music/torrents/{{ .Keywords }}.html{{else}}/music/1/added/desc.html{{end}}"
# categorymappings: [MUSIC]
# - path: "{{if .Keywords}}/games/torrents/{{ .Keywords }}.html{{else}}/games/1/added/desc.html{{end}}"
# categorymappings: [GAMES]
# - path: "{{if .Keywords}}/software/torrents/{{ .Keywords }}.html{{else}}/software/1/added/desc.html{{end}}"
# categorymappings: [SOFTWARE]
# - path: "{{if .Keywords}}/anime/torrents/{{ .Keywords }}.html{{else}}/anime/1/added/desc.html{{end}}"
# categorymappings: [ANIME]
# - path: "{{if .Keywords}}/ebooks/torrents/{{ .Keywords }}.html{{else}}/ebooks/1/added/desc.html{{end}}"
# categorymappings: [EBOOKS]
# - path: "{{if .Keywords}}/unknown/torrents/{{ .Keywords }}.html{{else}}/unknown.html{{end}}" # sorting is broken for unknown
# categorymappings: [OTHER]
# - path: "{{if .Keywords}}/adult/torrents/{{ .Keywords }}.html{{else}}/adult/1/added/desc.html{{end}}"
# categorymappings: [ADULT]
# - path: "{{if .Keywords}}/audiobooks/torrents/{{ .Keywords }}.html{{else}}/audiobooks/1/added/desc.html{{end}}"
# categorymappings: [AUDIOBOOK]
# - path: "{{if .Keywords}}/images/torrents/{{ .Keywords }}.html{{else}}/images/1/added/desc.html{{end}}"
# categorymappings: [IMAGES]
keywordsfilters:
- name: tolower
- name: re_replace
@ -142,3 +120,4 @@
text: 0
uploadvolumefactor:
text: 1
# Engine n/a