From fe9ddb969468080d16b0ff4d147bfdb9186f7d89 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 30 Dec 2024 05:44:29 +1300 Subject: [PATCH] hdforever: fix non-verified titles causing selector error --- src/Jackett.Common/Definitions/hdforever.yml | 102 +++++++++---------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/src/Jackett.Common/Definitions/hdforever.yml b/src/Jackett.Common/Definitions/hdforever.yml index c411a0887..95e817634 100644 --- a/src/Jackett.Common/Definitions/hdforever.yml +++ b/src/Jackett.Common/Definitions/hdforever.yml @@ -122,6 +122,9 @@ search: div.cats_série: 5 div.cats_sérieanim: 6 div.cats_documentaire: 7 + details: + selector: a[href^="torrents.php?id="] + attribute: href download_regular: selector: a[href^="torrents.php?action=download&"] attribute: href @@ -138,9 +141,56 @@ search: optional: true filters: - name: trim + poster: + selector: div.group_image img + attribute: src + files: + selector: td:nth-child(3) + date: + selector: td:nth-child(4) + filters: + - name: replace + args: ["Il y a ", ""] + - name: replace + args: ["heures", "hours"] + - name: replace + args: ["heure", "hour"] + - name: replace + args: ["jours", "days"] + - name: replace + args: ["jour", "day"] + - name: replace + args: ["semaines", "weeks"] + - name: replace + args: ["semaine", "week"] + - name: replace + args: ["mois", "months"] + - name: replace + args: ["ans", "years"] + - name: replace + args: ["an", "year"] + - name: append + args: " ago" + size: + selector: td:nth-child(5) + grabs: + selector: td:nth-child(6) + seeders: + selector: td:nth-child(7) + leechers: + selector: td:nth-child(8) + downloadvolumefactor: + case: + "div.group_info:contains(\"/ Free\")": 0 + "div.group_info:contains(\"↓75%\")": 0.75 + "div.group_info:contains(\"↓50%\")": 0.50 + "div.group_info:contains(\"↓25%\")": 0.25 # for this site this is the count ratio, which is 25% of the total torrent size. (I.E. it's 75% free) + "*": 1 + uploadvolumefactor: + text: 1 title_phase1: selector: div.group_info - remove: span.team_name, span:nth-child(2), div.tags, div.vote_controls, div.stats-content, .add_bookmark, img + remove: span.team_name, span:has(a[href^="torrents.php?action=download"]), div.tags, div.vote_controls, div.stats-content, .add_bookmark, img filters: - name: replace args: ["\n", " "] @@ -257,56 +307,6 @@ search: text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_phase2 }}{{ end }}" description: selector: div.group_info - poster: - selector: div.group_image img - attribute: src - details: - selector: a[href^="torrents.php?id="] - attribute: href - files: - selector: td:nth-child(3) - date: - selector: td:nth-child(4) - filters: - - name: replace - args: ["Il y a ", ""] - - name: replace - args: ["heures", "hours"] - - name: replace - args: ["heure", "hour"] - - name: replace - args: ["jours", "days"] - - name: replace - args: ["jour", "day"] - - name: replace - args: ["semaines", "weeks"] - - name: replace - args: ["semaine", "week"] - - name: replace - args: ["mois", "months"] - - name: replace - args: ["ans", "years"] - - name: replace - args: ["an", "year"] - - name: append - args: " ago" - size: - selector: td:nth-child(5) - grabs: - selector: td:nth-child(6) - seeders: - selector: td:nth-child(7) - leechers: - selector: td:nth-child(8) - downloadvolumefactor: - case: - "div.group_info:contains(\"/ Free\")": 0 - "div.group_info:contains(\"↓75%\")": 0.75 - "div.group_info:contains(\"↓50%\")": 0.50 - "div.group_info:contains(\"↓25%\")": 0.25 # for this site this is the count ratio, which is 25% of the total torrent size. (I.E. it's 75% free) - "*": 1 - uploadvolumefactor: - text: 1 minimumratio: text: 0.6 minimumseedtime: