From d15d4fb4333c43f3482011fd0ed115a4ddbd2771 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 8 Apr 2020 09:18:12 +1200 Subject: [PATCH] gktorrent: fix .torrent DL also fix title year move (single work totles would break) --- src/Jackett.Common/Definitions/gktorrent.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Jackett.Common/Definitions/gktorrent.yml b/src/Jackett.Common/Definitions/gktorrent.yml index 117c4311f..c0d490ce3 100644 --- a/src/Jackett.Common/Definitions/gktorrent.yml +++ b/src/Jackett.Common/Definitions/gktorrent.yml @@ -50,7 +50,7 @@ label: Download link default: "magnet:?xt=" options: - "/get_torrents/" : ".torrent" + "/telecharger/" : ".torrent" "magnet:?xt=": "magnet" download: @@ -62,7 +62,7 @@ - path: "{{if .Keywords}}recherche/{{.Keywords}}{{else}}{{end}}" rows: - selector: div.listing-torrent > table > tbody > tr:has(a) + selector: table.table-hover > tbody > tr:has(a) fields: category: @@ -79,9 +79,9 @@ site_date: selector: td:nth-child(1) a filters: - # date is at the end of the title, so we get it and name it site_date + # year is at the end of the title, so we get it and name it site_date - name: regexp - args: "(\\w+)$" + args: "(\\d{4})$" title: selector: td:nth-child(1) a filters: @@ -96,7 +96,7 @@ args: ["VOSTFR", "{{ .Result.site_date }} VOSTFR"] # and we delete it at the end - name: re_replace - args: ["(\\w+)$", ""] + args: ["(\\d{4})$", ""] details: selector: td:nth-child(1) a attribute: href