ccfbits: add imdb support. #4859

also add config sort options
update ULVF
add engine tag
This commit is contained in:
Garfield69
2020-03-07 12:55:48 +13:00
parent d05ad1ccb5
commit 8faf1c94dc

View File

@@ -42,9 +42,33 @@
- {id: 22, cat: Other, desc: "杂项"} - {id: 22, cat: Other, desc: "杂项"}
modes: modes:
search: [q] search: [q, imdbid]
tv-search: [q, season, ep] tv-search: [q, season, ep, imdbid]
movie-search: [q] movie-search: [q, imdbid]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "added"
options:
"added": "created"
"seeders": "seeders"
"size": "size"
"name": "title"
- name: type
type: select
label: Order requested from site
default: "DESC"
options:
"DESC": "desc"
"ASC": "asc"
login: login:
path: takelogin.php path: takelogin.php
@@ -60,13 +84,14 @@
search: search:
paths: paths:
- path: browse.php - path: browse.php
method: get
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
# 0 active 1 incldead 2 deadonly
incldead: 1 incldead: 1
sort: added fullsearch: "{{ if .Query.IMDBID }}1{{else}}{{end}}"
d: DESC sort: "{{ .Config.sort }}"
d: "{{ .Config.sort }}"
rows: rows:
selector: table[border="1"][cellpadding="5"] > tbody > tr:has(a[href^="details.php?id="]) selector: table[border="1"][cellpadding="5"] > tbody > tr:has(a[href^="details.php?id="])
@@ -122,7 +147,10 @@
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case:
"font:has([src=\"/pic/arrowup1.gif\"]):contains(\"1.5x\")": 1.5
"font:has([src=\"/pic/arrowup1.gif\"]):contains(\"2x\")": 2
"*": 1 "*": 1
description: description:
selector: td:nth-child(2) > table > tbody > tr:nth-child(2) selector: td:nth-child(2) > table > tbody > tr:nth-child(2)
remove: a, img remove: a, img
# Discuz! 7.2