worldofp2p: enable imdbid support. for #4859

This commit is contained in:
Garfield69 2019-03-13 20:16:34 +13:00
parent 77e9db411e
commit 43213b8ff4
1 changed files with 6 additions and 4 deletions

View File

@ -68,8 +68,9 @@
- {id: 6, cat: XXX/XviD, desc: "xXx-XviD"}
modes:
search: [q]
tv-search: [q, season, ep]
search: [q, imdbid]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
login:
path: login.php
@ -89,9 +90,10 @@
- path: browse.php
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Query.Keywords }}"
search: "{{if .Query.IMDBID}}{{.Query.IMDBID}}{{else}}{{.Keywords}}{{end}}"
incldead: "1"
searchin: "title"
# searchin: title, descr, genre, all
searchin: "{{if .Query.IMDBID}}all{{else}}title{{end}}"
rows:
selector: table > tbody > tr:has(a[href^="download.php?torrent="])