mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 19:58:38 +00:00
nyaasi: add prefer magnet link setting
Co-authored-by: mynameisbogdan <mynameisbogdan@users.noreply.github.com>
This commit is contained in:
parent
6e20120c72
commit
80691060ea
1 changed files with 8 additions and 1 deletions
|
@ -27,6 +27,10 @@ legacylinks:
|
|||
- https://nyaa.nocensor.art/
|
||||
|
||||
settings:
|
||||
- name: prefer_magnet_links
|
||||
type: checkbox
|
||||
label: Prefer Magnet Links
|
||||
default: true
|
||||
- name: filter-id
|
||||
type: select
|
||||
label: Filter
|
||||
|
@ -155,10 +159,13 @@ search:
|
|||
details:
|
||||
selector: td:nth-child(2) a:last-of-type
|
||||
attribute: href
|
||||
download:
|
||||
download_optional:
|
||||
selector: td:nth-child(3) a[href$=".torrent"]
|
||||
attribute: href
|
||||
optional: true
|
||||
download:
|
||||
text: "{{ if .Config.prefer_magnet_links }}{{ else }}{{ .Result.download_optional }}{{ end }}"
|
||||
optional: true
|
||||
magnet:
|
||||
selector: td:nth-child(3) a[href^="magnet:?"]
|
||||
attribute: href
|
||||
|
|
Loading…
Add table
Reference in a new issue