Skip to content

Commit

Permalink
lastfiles: 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 80f6c42 commit e859589
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/Jackett.Common/Definitions/lastfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,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 @@ -124,19 +124,15 @@ search:

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: tbody > tr:has(a[href^="download.php"])

Expand Down

0 comments on commit e859589

Please sign in to comment.