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: