From e27f784736905074d45d8740fef441c7095c0889 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Sun, 12 Feb 2023 03:10:53 +0000 Subject: [PATCH] Revert "puurhollands: gone. removed. resolves #9775" (#14005) --- README.md | 1 + .../Definitions/puurhollands.yml | 162 ++++++++++++++++++ src/Jackett.Updater/Program.cs | 1 - 3 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 src/Jackett.Common/Definitions/puurhollands.yml diff --git a/README.md b/README.md index c3915d697..756778fa7 100644 --- a/README.md +++ b/README.md @@ -475,6 +475,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * Punk's Horror Tracker * PuntoTorrent * PuTao + * Puur-Hollands * PWTorrents (PWT) * R3V WTF! [![(invite needed)][inviteneeded]](#) * Racing4Everyone (R4E) diff --git a/src/Jackett.Common/Definitions/puurhollands.yml b/src/Jackett.Common/Definitions/puurhollands.yml new file mode 100644 index 000000000..bf69ee290 --- /dev/null +++ b/src/Jackett.Common/Definitions/puurhollands.yml @@ -0,0 +1,162 @@ +--- +id: puurhollands +name: Puur-Hollands +description: "Puur-Hollands is a DUTCH Private Torrent Tracker for MUSIC" +language: nl-NL +type: private +encoding: UTF-8 +links: + - https://www.puur-hollands.org/ + +caps: + categorymappings: + - {id: 2, cat: Audio, desc: "Nederlandse Albums"} + - {id: 3, cat: Audio, desc: "Nederlandse Verzamel"} + - {id: 4, cat: Audio, desc: "Nederlandse Piraten"} + - {id: 5, cat: Audio, desc: "Losse Mp3 Verzameling"} + - {id: 7, cat: Audio, desc: "Limburgse Muziek"} + - {id: 8, cat: Audio, desc: "Nederlandse Instrumentaal"} + - {id: 9, cat: Audio, desc: "Nederlandse Dvds"} + + modes: + search: [q] + music-search: [q, artist] + +settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: flaresolverr + type: info + label: FlareSolverr + default: This site may use DDoS-Guard Protection, therefore Jackett requires FlareSolverr to access it. + - name: thankyou + type: text + label: Thank You Comment + - name: info_comment + type: info + label: Thank you comment + default: This site requires you to leave a Thank You comment before you can download. Enter your personalised comment above. + +login: + path: login.php + method: form + form: form[action="takelogin.php"] + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + returnto: "/" + error: + - selector: td.embedded:contains("fout") + test: + path: index.php + selector: a[href="logout.php"] + +download: + before: + # https://www.ebookparadijs.org/comment.php?action=add&tid=23079 + path: comment.php + method: post + inputs: + action: add + tid: "{{ .DownloadUri.Query.id }}" + text: "{{ .Config.thankyou }}" + selectors: + - selector: a[href^="download.php?id="] + attribute: href + +search: + paths: + - path: browse.php + inputs: + $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" + search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}" + incldead: 1 + + rows: + selector: table.mainouter + filters: + - name: andmatch + + fields: + category: + selector: a[href^="browse.php?cat="] + attribute: href + filters: + - name: querystring + args: cat + title: + selector: a[href^="details.php?id="] + details: + selector: a[href^="details.php?id="] + attribute: href + download: + selector: a[href^="details.php?id="] + attribute: href + poster: + selector: div[id^="Style"] img + attribute: src + size: + selector: td:nth-child(4) table tr:nth-child(1) td:nth-child(2) + filters: + - name: regexp + args: "(.+?) in" + files: + selector: td:nth-child(4) table tr:nth-child(1) td:nth-child(2) + filters: + - name: regexp + args: "in (\\d+) bestan" + grabs: + selector: td:nth-child(4) table tr:nth-child(2) td:nth-child(1) + date: + selector: td:nth-child(4) table tr:nth-child(2) td:last-child + filters: + - name: replace + args: ["januari", "January"] + - name: replace + args: ["februari", "February"] + - name: replace + args: ["maart", "March"] + - name: replace + args: ["april", "April"] + - name: replace + args: ["mei", "May"] + - name: replace + args: ["juni", "June"] + - name: replace + args: ["juli", "July"] + - name: replace + args: ["augustus", "August"] + - name: replace + args: ["september", "September"] + - name: replace + args: ["oktober", "October"] + - name: replace + args: ["november", "November"] + - name: replace + args: ["december", "December"] + - name: re_replace + args: ["\\s*om\\s*", " "] + - name: append + args: " +01:00" # CET + - name: dateparse + args: "2 January 2006 15:04:05 -07:00" + seeders_optional: + optional: true + selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font b + seeders: + text: "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}" + leechers_optional: + optional: true + selector: td:nth-child(4) table tr:nth-child(3) td:nth-child(5) font font b + leechers: + text: "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}" + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# minimumratio: appears to be ratioless +# engine n/a diff --git a/src/Jackett.Updater/Program.cs b/src/Jackett.Updater/Program.cs index f8548dd2d..ec78b8a28 100644 --- a/src/Jackett.Updater/Program.cs +++ b/src/Jackett.Updater/Program.cs @@ -489,7 +489,6 @@ namespace Jackett.Updater "Definitions/ps4-torrent.yml", "Definitions/pt99.yml", "Definitions/purovicio.yml", - "Definitions/puurhollands.yml", "Definitions/qctorrent.yml", "Definitions/qxr.yml", "Definitions/racing4everyone.yml", // switch to *-API #12870 #8682