mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
solidtorrents: add prefer magnet links
This commit is contained in:
@@ -53,6 +53,10 @@ caps:
|
|||||||
book-search: [q]
|
book-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
|
- name: prefer_magnet_links
|
||||||
|
type: checkbox
|
||||||
|
label: Prefer Magnet Links
|
||||||
|
default: false
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
label: Sort requested from site
|
label: Sort requested from site
|
||||||
@@ -78,6 +82,7 @@ search:
|
|||||||
sort: "{{ .Config.sort }}"
|
sort: "{{ .Config.sort }}"
|
||||||
order: "{{ .Config.type }}"
|
order: "{{ .Config.type }}"
|
||||||
limit: 100
|
limit: 100
|
||||||
|
page: 1
|
||||||
|
|
||||||
rows:
|
rows:
|
||||||
selector: li.search-result:has(a[class="dl-torrent"])
|
selector: li.search-result:has(a[class="dl-torrent"])
|
||||||
@@ -90,9 +95,16 @@ search:
|
|||||||
details:
|
details:
|
||||||
selector: h5 a
|
selector: h5 a
|
||||||
attribute: href
|
attribute: href
|
||||||
download:
|
download_optional:
|
||||||
selector: a[class="dl-torrent"]
|
selector: a[class="dl-torrent"]
|
||||||
attribute: href
|
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:
|
infohash:
|
||||||
selector: a[href^="magnet:?xt"]
|
selector: a[href^="magnet:?xt"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user