skytorrentclone: restore magnets only option. #4542

This commit is contained in:
Garfield69
2019-04-25 07:09:25 +12:00
parent 1d224b6db9
commit db300f5ae9

View File

@@ -28,7 +28,15 @@
tv-search: [q, season, ep]
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:
# https://www.skytorrents.lol/?query=mr+mercedes+s02e05&sort=created
@@ -54,9 +62,11 @@
details:
selector: td a
attribute: href
download:
selector: a[href*="/torrent/"]
download-itorrents:
selector: a[href^="//itorrents"]
attribute: href
download:
text: "{{if .Config.itorrents-links}}{{ .Result.download-itorrents }}{{else}}{{end}}"
magnet:
selector: a[href^="magnet:?"]
attribute: href