mirror of
https://github.com/Jackett/Jackett
synced 2025-03-13 07:33:12 +00:00
bitsearch: add prefer magnet links
This commit is contained in:
parent
b5a6205b99
commit
43fbfe9e6b
1 changed files with 12 additions and 1 deletions
|
@ -58,6 +58,10 @@ caps:
|
|||
book-search: [q]
|
||||
|
||||
settings:
|
||||
- name: prefer_magnet_links
|
||||
type: checkbox
|
||||
label: Prefer Magnet Links
|
||||
default: false
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
|
@ -100,9 +104,16 @@ search:
|
|||
details:
|
||||
selector: h5 a
|
||||
attribute: href
|
||||
download:
|
||||
download_optional:
|
||||
selector: a.dl-torrent
|
||||
attribute: href
|
||||
optional: true
|
||||
download:
|
||||
text: "{{ if .Config.prefer_magnet_links }}{{ else }}{{ .Result.download_optional }}{{ end }}"
|
||||
optional: true
|
||||
magnet:
|
||||
selector: a[href^="magnet:?xt"]
|
||||
attribute: href
|
||||
infohash:
|
||||
selector: a[href^="magnet:?xt"]
|
||||
attribute: href
|
||||
|
|
Loading…
Add table
Reference in a new issue