Skip to content

Commit

Permalink
bluesbrothers: add genre query and results
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 authored and pull[bot] committed Apr 14, 2024
1 parent e859589 commit 1070720
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/Jackett.Common/Definitions/bluesbrothers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 1070720

Please sign in to comment.