From dcd10211e2090bc9d962ae696c2205c68065138f Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 15 Feb 2020 18:25:37 +1300 Subject: [PATCH] engine tag luminance. #6822 --- src/Jackett.Common/Definitions/empornium.yml | 14 ++++++---- src/Jackett.Common/Definitions/femdomcult.yml | 14 ++++++---- src/Jackett.Common/Definitions/nostalgic.yml | 28 +++++++++++-------- src/Jackett.Common/Definitions/pixelcove.yml | 2 +- 4 files changed, 34 insertions(+), 24 deletions(-) diff --git a/src/Jackett.Common/Definitions/empornium.yml b/src/Jackett.Common/Definitions/empornium.yml index 41ebff392..4f31bf297 100644 --- a/src/Jackett.Common/Definitions/empornium.yml +++ b/src/Jackett.Common/Definitions/empornium.yml @@ -85,14 +85,16 @@ - path: torrents.php inputs: $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" - title: "{{ .Query.Keywords }}" + title: "{{ .Keywords }}" order_by: time order_way: desc action: basic searchsubmit: 1 + rows: # exclude redbar torrents selector: table#torrent_table > tbody > tr[class^="torrent row"] + fields: download: selector: a[href^="/torrents.php?action=download&id="] @@ -106,7 +108,7 @@ attribute: href filters: - name: regexp - args: "\\[(\\d+?)\\]" + args: "(\\d+)]=1" details: selector: a[href^="/torrents.php?id="] attribute: href @@ -141,8 +143,8 @@ downloadvolumefactor: case: span.icon[title*="Freeleech"]: 0 - "img[alt=\"Freeleech\"]": "0" - "*": "1" + "img[alt=\"Freeleech\"]": 0 + "*": 1 uploadvolumefactor: - case: - "*": "1" + text: 1 +# luminance diff --git a/src/Jackett.Common/Definitions/femdomcult.yml b/src/Jackett.Common/Definitions/femdomcult.yml index 7ea54d58a..c09ab9c41 100644 --- a/src/Jackett.Common/Definitions/femdomcult.yml +++ b/src/Jackett.Common/Definitions/femdomcult.yml @@ -53,14 +53,16 @@ - path: torrents.php inputs: $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" - title: "{{ .Query.Keywords }}" + title: "{{ .Keywords }}" order_by: time order_way: desc action: basic searchsubmit: 1 + rows: # exclude redbar torrents selector: table#torrent_table > tbody > tr[class^="torrent row"] + fields: download: selector: a[href^="torrents.php?action=download&id="] @@ -74,7 +76,7 @@ attribute: href filters: - name: regexp - args: "\\[(\\d+?)\\]" + args: "(\\d+)]=1" details: selector: a[href^="torrents.php?id="] attribute: href @@ -107,8 +109,8 @@ selector: td:nth-child(9) downloadvolumefactor: case: - "img[alt=\"Freeleech\"]": "0" - "*": "1" + "img[alt=\"Freeleech\"]": 0 + "*": 1 uploadvolumefactor: - case: - "*": "1" + text: 1 +# luminance diff --git a/src/Jackett.Common/Definitions/nostalgic.yml b/src/Jackett.Common/Definitions/nostalgic.yml index 8efb29382..8bbceae9f 100644 --- a/src/Jackett.Common/Definitions/nostalgic.yml +++ b/src/Jackett.Common/Definitions/nostalgic.yml @@ -39,7 +39,7 @@ modes: search: [q] - tv-search: [q, season, ep] + tv-search: [q] movie-search: [q] settings: @@ -74,7 +74,7 @@ password: "{{ .Config.password }}" cinfo: "1536|864|24|-780" iplocked: 0 - submit: "login" + submit: login selectorinputs: token: selector: input[name="token"] @@ -82,13 +82,8 @@ error: - selector: table#maincontent tr td div div#messagebarA - ratio: - path: / - selector: td:has(a[href="/articles.php?topic=ratio"]) > td - search: paths: - #https://nostalgic.to/torrents.php?filter_cat%5B32%5D=1&filter_cat%5B27%5D=1&order_by=time&order_way=desc&searchtext=&action=advanced&title=terminator&sizeall=&sizetype=gb&sizerange=0.01&filelist=&taglist=&autocomplete_toggle=1 - path: torrents.php inputs: $raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}" @@ -108,20 +103,31 @@ selector: table#torrent_table tr:has(a[href^="torrents.php?action=download"]) fields: - title: - selector: a[href^="/torrents.php?id="] category: - selector: td.cats_col div a + selector: a[href^="/torrents.php?filter_cat"] attribute: href filters: - name: regexp args: "(\\d+)]=1" + title: + selector: a[href^="/torrents.php?id="] details: selector: a[href^="/torrents.php?id="] attribute: href download: selector: a[href^="torrents.php?action=download"] attribute: href + description: + selector: div.tags + banner: + selector: td:nth-child(2) > script + filters: + - name: regexp + args: "src=\\\\\"(.*?)\\\\\">" + - name: re_replace + args: ["\\\\(.)", "$1"] + - name: replace + args: ["/static/common/noartwork/noimage.png", ""] files: selector: td:nth-last-child(8) date: @@ -142,4 +148,4 @@ "*": 1 uploadvolumefactor: text: 1 -# engine n/a +# luminance diff --git a/src/Jackett.Common/Definitions/pixelcove.yml b/src/Jackett.Common/Definitions/pixelcove.yml index c5e136082..899d6a9f2 100644 --- a/src/Jackett.Common/Definitions/pixelcove.yml +++ b/src/Jackett.Common/Definitions/pixelcove.yml @@ -161,4 +161,4 @@ "*": 1 uploadvolumefactor: text: 1 -# engine n/a +# luminance