From 21d948906cc61aa7c3346c3b9ca41fefd8d95a80 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 5 Oct 2023 09:06:52 +1300 Subject: [PATCH] lastfiles: new seed, leech and grab selectors also, prefixing plus no longer works, using andmatch --- src/Jackett.Common/Definitions/lastfiles.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Jackett.Common/Definitions/lastfiles.yml b/src/Jackett.Common/Definitions/lastfiles.yml index fbc3910b8..65b8fe156 100644 --- a/src/Jackett.Common/Definitions/lastfiles.yml +++ b/src/Jackett.Common/Definitions/lastfiles.yml @@ -116,17 +116,13 @@ login: search: paths: - # https://www.last-torrents.org/externalid?searchex=tt5834760&search_by=imdbid + # https://www.last-torrents.org/browse.php?search=the+nun+ii&searchin=title&type=0&cat=+ # cannot support imdbid or tmdbid searches while using path category filters - path: browse.php categories: [1, 2, 5, 6, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 28, 30, 31, 32, 33, 42, 43, 44, 49, 51, 54, 55, 56, 57, 58, 59, 60, 61, 62, 81, 82] - path: browseadult.php categories: [27] - keywordsfilters: - - name: re_replace - args: ["(\\w+)", " +$1"] # prepend + to each word - inputs: $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" search: "{{ if .Query.Genre }}{{ .Query.Genre }} {{ else }}{{ end }}{{ .Keywords }}" @@ -140,6 +136,8 @@ search: rows: selector: div.py-3 + filters: + - name: andmatch fields: category: @@ -191,11 +189,11 @@ search: size: selector: div.col-sm-4:nth-of-type(4) grabs: - selector: div.col-sm-4:contains("Completed") b + selector: div.col-sm-3:contains("Completed") b seeders: - selector: div.col-sm-4:contains("Seeders") b + selector: div.col-sm-3:contains("Seeders") b leechers: - selector: div.col-sm-4:contains("Leechers") b + selector: div.col-sm-2:contains("Leechers") b downloadvolumefactor: case: img[src$="half2.png"]: 0.5