springsunday: update selectors. resolves #14228

This commit is contained in:
Garfield69
2023-04-07 18:57:13 +12:00
parent f019933c40
commit e44cb61793

View File

@@ -22,8 +22,8 @@ caps:
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep, imdbid] tv-search: [q, season, ep, imdbid, doubanid]
movie-search: [q, imdbid] movie-search: [q, imdbid, doubanid]
music-search: [q] music-search: [q]
settings: settings:
@@ -65,7 +65,7 @@ login:
cookie: "{{ .Config.cookie }}" cookie: "{{ .Config.cookie }}"
test: test:
path: index.php path: index.php
selector: a[href="logout.php"] selector: a[href*="logout.php?auth="]
search: search:
paths: paths:
@@ -79,41 +79,46 @@ search:
spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}" spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 all, 1 popular, 2 classic, 3 recomended, 4 2+3 # 0 all, 1 popular, 2 classic, 3 recomended, 4 2+3
pick: 0 pick: 0
# 0 title. 1 descr, 3 uploader, 4 imdb URL # 0 title, 3 uploader, 4 imdb URL, 5 douban URL
search_area: "{{ if .Query.IMDBID }}4{{ else }}0{{ end }}" search_area: "{{ if or .Query.IMDBID .Query.DoubanID }}{{ else }}0{{ end }}{{ if .Query.IMDBID }}4{{ else }}{{ end }}{{ if .Query.DoubanID }}5{{ else }}{{ end }}"
# 0 AND, 1 OR, 2 Exact # 0 AND, 1 OR, 2 Exact
search_mode: 0 search_mode: 0
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
notnewword: 1 notnewword: 1
# supports imdbid searching and displays imdb link in results. # supports imdbid and douban searching but does not display imdb and douban link in results.
rows: rows:
selector: table.torrents > tbody > tr:has(table.torrentname) selector: table.torrents > tbody > tr:has(table.torrentname)
fields: fields:
category: category:
selector: a[href^="?cat="] selector: a[href*="?cat="]
attribute: href attribute: href
filters: filters:
- name: querystring - name: querystring
args: cat args: cat
title_default: title_default:
selector: a[href^="details.php?id="] selector: a[href*="details.php?id="]
title: title:
selector: a[title][href^="details.php?id="] selector: a[title][href*="details.php?id="]
attribute: title attribute: title
optional: true optional: true
default: "{{ .Result.title_default }}" default: "{{ .Result.title_default }}"
details: details:
selector: a[href^="details.php?id="] selector: a[href*="details.php?id="]
attribute: href attribute: href
download: download:
selector: a[href^="download.php?id="] selector: a[href*="download.php?id="]
attribute: href attribute: href
imdbid: imdbid:
# site currently only has a badge and rating, the id is not present. just in case a future update.
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
doubanid:
# site currently only has a badge and rating, the id is not present. just in case a future update.
selector: a[href*="movie.douban.com/subject/"]
attribute: href
date_elapsed: date_elapsed:
# time type: time elapsed (default) # time type: time elapsed (default)
selector: td.rowfollow:nth-last-child(6) > span[title] selector: td.rowfollow:nth-last-child(6) > span[title]
@@ -160,4 +165,4 @@ search:
description: description:
selector: td:nth-child(2) selector: td:nth-child(2)
remove: a, img remove: a, img
# NexusPHP Standard v1.5 Beta 4 (customised) # NexusPHP Standard v1.5 Beta 4 2010-09-19 (customised)