From c5b604c7097ec600fcb61d7bdd2951d3deba13dc Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Sat, 29 Oct 2022 22:02:09 +0100 Subject: [PATCH] hdturk: say thank you before download. resolves #13684 --- src/Jackett.Common/Definitions/hdturk.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/hdturk.yml b/src/Jackett.Common/Definitions/hdturk.yml index e670b484d..b0758089e 100644 --- a/src/Jackett.Common/Definitions/hdturk.yml +++ b/src/Jackett.Common/Definitions/hdturk.yml @@ -105,6 +105,16 @@ login: path: index.php selector: a[href*="/logout.php?logouthash="] +download: + before: + path: takethanks.php + method: post + inputs: + torrentid: "{{ .DownloadUri.Query.id }}" + selectors: + - selector: a[href*="download.php?id="] + attribute: href + search: paths: - path: browse.php @@ -150,7 +160,7 @@ search: - name: dateparse args: "02-01-2006 15:04 -07:00" download: - selector: a[href*="download.php?id="] + selector: div[id^="port-target-"] a attribute: href size: selector: td:nth-child(5)