From df82aa3c33d0aa0b2df3bfe5651eff667eb71a5e Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 28 Sep 2024 11:33:49 +1200 Subject: [PATCH] assorted French indexers: fix details and magnet. resolves #15610 --- src/Jackett.Common/Definitions/gktorrent.yml | 2 +- src/Jackett.Common/Definitions/oxtorrent-vip.yml | 4 ++-- src/Jackett.Common/Definitions/torrent9-tel.yml | 4 ++-- src/Jackett.Common/Definitions/torrent9.yml | 6 +++++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/gktorrent.yml b/src/Jackett.Common/Definitions/gktorrent.yml index dfb3d3b74..9833e3349 100644 --- a/src/Jackett.Common/Definitions/gktorrent.yml +++ b/src/Jackett.Common/Definitions/gktorrent.yml @@ -135,7 +135,7 @@ search: attribute: href filters: - name: regexp - args: (/?torrent/\d+) + args: (/?detail/\d+) download: text: "{{ .Result.details }}" size: diff --git a/src/Jackett.Common/Definitions/oxtorrent-vip.yml b/src/Jackett.Common/Definitions/oxtorrent-vip.yml index 8f612d0c8..e7914bece 100644 --- a/src/Jackett.Common/Definitions/oxtorrent-vip.yml +++ b/src/Jackett.Common/Definitions/oxtorrent-vip.yml @@ -136,14 +136,14 @@ search: optional: true filters: - name: regexp - args: (/?torrent/\d+) + args: (/?detail/\d+) details_onclick: selector: td:nth-child(1) a[onclick] attribute: onclick optional: true filters: - name: regexp - args: (/?torrent/\d+) + args: (/?detail/\d+) details: text: "{{ or .Result.details_href .Result.details_onclick }}" download: diff --git a/src/Jackett.Common/Definitions/torrent9-tel.yml b/src/Jackett.Common/Definitions/torrent9-tel.yml index 6851941f9..31fec8c4d 100644 --- a/src/Jackett.Common/Definitions/torrent9-tel.yml +++ b/src/Jackett.Common/Definitions/torrent9-tel.yml @@ -139,14 +139,14 @@ search: optional: true filters: - name: regexp - args: (/?torrent/\d+) + args: (/?detail/\d+) details_onclick: selector: td:nth-child(1) a[onclick] attribute: onclick optional: true filters: - name: regexp - args: (/?torrent/\d+) + args: (/?detail/\d+) details: text: "{{ or .Result.details_href .Result.details_onclick }}" download: diff --git a/src/Jackett.Common/Definitions/torrent9.yml b/src/Jackett.Common/Definitions/torrent9.yml index 83f7ce7a8..cef910326 100644 --- a/src/Jackett.Common/Definitions/torrent9.yml +++ b/src/Jackett.Common/Definitions/torrent9.yml @@ -92,8 +92,12 @@ settings: download: selectors: - - selector: a:has(i.fa-magnet) + - selector: a[href^="magnet:?"] attribute: href + - selector: script:contains("magnet:?") + filters: + - name: regexp + args: "\\s'(magnet:\\?.+?)';" search: paths: