springsunday: fix row processing. resolves #8697 (#8703)

This commit is contained in:
garfield69 2020-05-19 11:22:01 +12:00 committed by GitHub
parent 9970386baa
commit a6f197f63f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 62 additions and 18 deletions

View File

@ -26,6 +26,30 @@ caps:
movie-search: [q, imdbid]
music-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "4"
options:
"4": "created"
"7": "seeders"
"5": "size"
"1": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login:
path: login.php
method: form
@ -61,54 +85,74 @@ search:
- path: torrents.php
inputs:
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
# 0=including dead 1=active 2=dead
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 incldead, 1 active, 2 onlydead
incldead: 0
# show promotions: 0=all 1=normal 2=free 3=2x 4=2xFree 5=50% 6=2x50% 7=30%
# 0 all, 1 normal, 2 free, 3 2x, 4 2xFree, 5 50%, 6 2x50%, 7 30%
spstate: 0
# 0=title 1=descr 3=uploader 4=imdb URL
# 0 all, 1 popular, 2 classic, 3 recomended, 4 2+3
pick: 0
# 0 title. 1 descr, 3 uploader, 4 imdb URL
search_area: "{{ if .Query.IMDBID }}4{{else}}0{{end}}"
# 0=AND 1=OR 2=Exact
# 0 AND, 1 OR, 2 Exact
search_mode: 0
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
# supports imdbid searching and displays imdb link in results.
rows:
selector: table.torrents > tbody > tr:has(table.torrentname)
fields:
title:
selector: a[href^="details.php?id="]
title:
optional: true
selector: a[title][href^="details.php?id="]
attribute: title
category:
selector: a[href^="?cat="]
attribute: href
filters:
- name: querystring
args: cat
title:
selector: a[href^="details.php?id="]
title:
optional: true
selector: a[title][href^="details.php?id="]
attribute: title
details:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="download.php?id="]
attribute: href
imdb:
optional: true
selector: a[href*="www.imdb.com/title/tt"]
attribute: href
date:
selector: td.rowfollow:nth-child(4) > span[title]
# time type: time elapsed (default)
selector: td.rowfollow:nth-last-child(6) > span[title]
attribute: title
optional: true
filters:
- name: append
args: " +08:00"
- name: dateparse
args: "2006-01-02 15:04:05 -07:00"
date:
# time added
selector: td.rowfollow:nth-last-child(6):not(:has(span))
optional: true
filters:
- name: append
args: " +08:00"
- name: dateparse
args: "2006-01-0215:04:05 -07:00"
size:
selector: td.rowfollow:nth-child(5)
selector: td.rowfollow:nth-last-child(5)
seeders:
selector: td.rowfollow:nth-child(6)
selector: td.rowfollow:nth-last-child(4)
leechers:
selector: td.rowfollow:nth-child(7)
selector: td.rowfollow:nth-last-child(3)
grabs:
selector: td.rowfollow:nth-child(8)
selector: td.rowfollow:nth-last-child(2)
downloadvolumefactor:
case:
img.pro_free: 0
@ -124,6 +168,6 @@ search:
img.pro_2up: 2
"*": 1
description:
selector: td.rowfollow:nth-child(2)
selector: td:nth-child(2)
remove: a, img
# NexusPHP Standard v1.5 Beta 4
# NexusPHP Standard v1.5 Beta 4 (customised)