bluesbrothers: add genre query and results

This commit is contained in:
Garfield69 2022-08-04 13:43:25 +12:00
parent e6b37d7b09
commit b025f86dd6
1 changed files with 16 additions and 11 deletions

View File

@ -44,10 +44,10 @@ caps:
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
book-search: [q]
tv-search: [q, season, ep, genre]
movie-search: [q, genre]
music-search: [q, genre]
book-search: [q, genre]
settings:
- name: username
@ -105,22 +105,21 @@ search:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
search: "{{ if .Query.Genre }}{{ .Query.Genre }} {{ else }}{{ end }}{{ .Keywords }}"
# title, descr, genre, all
searchin: title
searchin: "{{ if .Query.Genre }}all{{ else }}title{{ end }}"
# 0 active, 1 incldead, 2 onlydead
incldead: 1
only_free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
keywordsfilters:
- name: re_replace
args: ["(\\w+)", " +$1"] # prepend + to each word
rows:
selector: table.table-bordered tr:has(a[href^="download.php?torrent="])
filters:
- name: andmatch
fields:
category:
@ -135,6 +134,9 @@ search:
filters:
- name: regexp
args: "Tip\\('<b>(.+?)</b>"
details:
selector: a[href^="details.php?id="]
attribute: href
download:
selector: a[href^="download.php?torrent="]
attribute: href
@ -144,9 +146,12 @@ search:
filters:
- name: regexp
args: src=\\'(.+?)\\'
details:
selector: a[href^="details.php?id="]
attribute: href
- name: replace
args: ["./pic/noposter.png", ""]
genre:
selector: i
description:
text: "{{ .Result.genre }}"
files:
selector: td:nth-child(5)
date_day: