From 9271095b616e4bdce75e617bbc6231773129528a Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 15 Nov 2024 06:48:22 +1300 Subject: [PATCH] mactorrentsdownload: new download process. resolves #12396 from the details page extract the path to the actual download page and then extract the download link from a script. --- .../Definitions/mactorrentsdownload.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/mactorrentsdownload.yml b/src/Jackett.Common/Definitions/mactorrentsdownload.yml index b021cf214..d3c13cc38 100644 --- a/src/Jackett.Common/Definitions/mactorrentsdownload.yml +++ b/src/Jackett.Common/Definitions/mactorrentsdownload.yml @@ -23,9 +23,19 @@ settings: type: info_flaresolverr download: - selectors: - - selector: a[href$=".torrent"] + before: + pathselector: + selector: a[href^="/download?"] attribute: href + filters: + - name: replace + args: ["/download?", "/download/?"] + selectors: + - selector: script:contains("downloadLink") + usebeforeresponse: true + filters: + - name: regexp + args: "downloadLink = '(.+?)';" search: paths: