From f612345facdd643ee9e114f5aa0c1d03fc89f68e Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 26 Jan 2019 10:31:46 +1300 Subject: [PATCH] skytorrentsclone: make itorrents link optional. resolves #4542 --- .../Definitions/skytorrentsclone.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/skytorrentsclone.yml b/src/Jackett.Common/Definitions/skytorrentsclone.yml index 83ccfcdb0..22b32df08 100644 --- a/src/Jackett.Common/Definitions/skytorrentsclone.yml +++ b/src/Jackett.Common/Definitions/skytorrentsclone.yml @@ -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: + 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