From 76c9000393ce9aac6abf2637f169001c5ff00beb Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 7 Jan 2020 15:05:42 +1300 Subject: [PATCH] gktorrent, oxtorrent: add config download optoin. resolves #6848 --- src/Jackett.Common/Definitions/gktorrent.yml | 11 +++++++++-- src/Jackett.Common/Definitions/oxtorrent.yml | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/Jackett.Common/Definitions/gktorrent.yml b/src/Jackett.Common/Definitions/gktorrent.yml index e0ecc17e2..49a60a7a9 100644 --- a/src/Jackett.Common/Definitions/gktorrent.yml +++ b/src/Jackett.Common/Definitions/gktorrent.yml @@ -43,10 +43,17 @@ tv-search: [q, season, ep] movie-search: [q] - settings: [] + settings: + - name: downloadlink + type: select + label: Download link + default: "magnet:?xt=" + options: + "/get_torrents/" : ".torrent" + "magnet:?xt=": "magnet" download: - selector: a[href^="magnet:?xt="] + selector: a[href*="{{ .Config.downloadlink }}"] search: paths: diff --git a/src/Jackett.Common/Definitions/oxtorrent.yml b/src/Jackett.Common/Definitions/oxtorrent.yml index be4cd7e30..8df3054ec 100644 --- a/src/Jackett.Common/Definitions/oxtorrent.yml +++ b/src/Jackett.Common/Definitions/oxtorrent.yml @@ -28,10 +28,17 @@ tv-search: [q, season, ep] movie-search: [q] - settings: [] + settings: + - name: downloadlink + type: select + label: Download link + default: "magnet:?xt=" + options: + "/get_torrents/" : ".torrent" + "magnet:?xt=": "magnet" download: - selector: a[href^="magnet:?xt="] + selector: a[href*="{{ .Config.downloadlink }}"] search: paths: