mirror of https://github.com/Jackett/Jackett
skytorrentsclone: make itorrents link optional. resolves #4542
This commit is contained in:
parent
d8607ee0f2
commit
f612345fac
|
@ -28,7 +28,15 @@
|
||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
settings: []
|
settings:
|
||||||
|
- name: itorrents-links
|
||||||
|
type: checkbox
|
||||||
|
label: Add download links via itorrents.org
|
||||||
|
default: true
|
||||||
|
- name: info
|
||||||
|
type: info
|
||||||
|
label: ITorrents Note
|
||||||
|
default: Without the itorrents option only magnet links will be provided.
|
||||||
|
|
||||||
search:
|
search:
|
||||||
# https://www.skytorrents.lol/?query=mr+mercedes+s02e05&sort=created
|
# https://www.skytorrents.lol/?query=mr+mercedes+s02e05&sort=created
|
||||||
|
@ -54,9 +62,11 @@
|
||||||
details:
|
details:
|
||||||
selector: td a
|
selector: td a
|
||||||
attribute: href
|
attribute: href
|
||||||
download:
|
download-itorrents:
|
||||||
selector: a[href^="//itorrents"]
|
selector: a[href^="//itorrents"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
download:
|
||||||
|
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{else}}{{end}}"
|
||||||
magnet:
|
magnet:
|
||||||
selector: a[href^="magnet:?"]
|
selector: a[href^="magnet:?"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
|
Loading…
Reference in New Issue