From bced4b14f997bb07f4bde6aa263c2c48398a0c5c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 18 Nov 2021 17:52:48 +1300 Subject: [PATCH] gaytorrentsru: update download some users are restricted in the number of downloads they are allowed per day. when a dl for a torrent is tried the first time, an intermediate page is presented with the available dl slots and a query to continue. subsequent DL for the same torrent does not get the intermediate page. This patch bypasses the query, but if users exceed their daily slots the download will fail, as it should. --- src/Jackett.Common/Definitions/gaytorrentru.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/gaytorrentru.yml b/src/Jackett.Common/Definitions/gaytorrentru.yml index 4cc0c35e8..92f708ee5 100644 --- a/src/Jackett.Common/Definitions/gaytorrentru.yml +++ b/src/Jackett.Common/Definitions/gaytorrentru.yml @@ -135,9 +135,16 @@ search: details: selector: a[href^="details.php?id="] attribute: href - download: - selector: a[href^="download.php/"] + id: + selector: a[href^="details.php?id="] attribute: href + filters: + - name: querystring + args: id + download: + # turn href="download.php/0738d444362fa610a08fb87b5c1bec798ca1731adbf3175b/GUARATORO.torrent + # into href="/download.php?id=0738d444362fa610a08fb87b5c1bec798ca1731adbf3175b&n=GUARATORO.torrent&p=dodownload + text: "download.php?id={{ .Result.id }}&n={{ .Result.title }}.torrent&p=dodownload" poster: selector: a[href^="details.php?id="] attribute: onmouseover