diff --git a/src/Jackett.Common/Definitions/gktorrent.yml b/src/Jackett.Common/Definitions/gktorrent.yml index be6815625..09b8a04b5 100644 --- a/src/Jackett.Common/Definitions/gktorrent.yml +++ b/src/Jackett.Common/Definitions/gktorrent.yml @@ -81,6 +81,7 @@ download: filters: - name: regexp args: "\\s'(magnet:\\?.+?)';" + search: paths: - path: "{{ if .Keywords }}recherche/{{ .Keywords }}{{ else }}{{ end }}" @@ -92,7 +93,7 @@ search: args: ["(?i)(S)(\\d{1,3})$", "saison $2"] rows: - selector: table.table-hover > tbody > tr:has(a[href*=torrent]) + selector: table.table-hover > tbody > tr:has(a[onclick*="torrent/"]) fields: category: @@ -119,10 +120,12 @@ search: text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase2 }}{{ end }}" details: selector: td:nth-child(1) a - attribute: href + attribute: onclick + filters: + - name: regexp + args: (torrent/\d+) download: - selector: td:nth-child(1) a - attribute: href + text: "{{ .Result.details }}" size: selector: td:nth-child(2) date: