Skip to content

Commit

Permalink
twilight: add freeleech filter #9456
Browse files Browse the repository at this point in the history
add imdb search support
add minimumratio
  • Loading branch information
garfield69 committed Sep 15, 2020
1 parent f8c34e4 commit 29787bc
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/Jackett.Common/Definitions/twilight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ caps:
- {id: 36, cat: TV, desc: "Tv"}

modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
search: [q, imdbid]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
music-search: [q]

settings:
Expand All @@ -45,6 +45,10 @@ settings:
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
Expand Down Expand Up @@ -83,11 +87,12 @@ search:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
# 0 active 1 incldead 2 onlydead 3 freeleech
incldead: 1
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 active, 1 incldead, 2 onlydead, 3 freeleech
incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
# does not display imdb links in results

rows:
selector: tr[class^="color"]
Expand Down Expand Up @@ -142,4 +147,6 @@ search:
"*": 1
uploadvolumefactor:
text: 1
minimumratio:
text: 0.51
# customised from TBDEV,U232,and Btdev

0 comments on commit 29787bc

Please sign in to comment.