the-madhouse: add imdbid search

and silver DLVF
This commit is contained in:
Garfield69 2020-03-25 19:33:28 +13:00
parent 6c64f68360
commit 281977a5e9
1 changed files with 9 additions and 6 deletions

View File

@ -53,9 +53,9 @@
- {id: 37, cat: TV/Sport, desc: "TV Sports"} - {id: 37, cat: TV/Sport, desc: "TV Sports"}
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: settings:
- name: username - name: username
@ -110,13 +110,14 @@
- path: browse.php - path: browse.php
inputs: inputs:
do: search do: search
keywords: "{{ .Keywords }}" keywords: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
# t_name T_description t_both t_uploader t_genre # t_name t_description t_both t_uploader t_genre
search_type: t_name search_type: "{{ if .Query.IMDBID }}t_description{{else}}t_name{{end}}"
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}" category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}"
include_dead_torrents: yes include_dead_torrents: yes
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
order: "{{ .Config.type }}" order: "{{ .Config.type }}"
# does not return imdb link in results
rows: rows:
selector: table.sortable tr:has(a[href*="/download.php?id="]) selector: table.sortable tr:has(a[href*="/download.php?id="])
@ -137,6 +138,7 @@
details: details:
selector: a[href*="/details.php?id="] selector: a[href*="/details.php?id="]
attribute: href attribute: href
# rows have download but site requires thanks so we use dl from details
download: download:
selector: a[href*="/details.php?id="] selector: a[href*="/details.php?id="]
attribute: href attribute: href
@ -164,6 +166,7 @@
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src$="_flags/freedownload.gif"]: 0 img[src$="_flags/freedownload.gif"]: 0
img[src$="_flags/silverdownload.gif"]: 0.5
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case: