From a0aa77519b16f6bf71511e90b08fa7fa9bc9182f Mon Sep 17 00:00:00 2001 From: kaso17 Date: Fri, 23 Dec 2016 17:35:30 +0100 Subject: [PATCH] Add HDClub tracker --- README.md | 1 + src/Jackett/Definitions/hdclub.yml | 92 ++++++++++++++++++++++++++++++ src/Jackett/Jackett.csproj | 3 + 3 files changed, 96 insertions(+) create mode 100644 src/Jackett/Definitions/hdclub.yml diff --git a/README.md b/README.md index a15316753..878f20773 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * HD4Free * HD-Space * HD-Torrents + * HDClub * Hebits * New Real World * Hounddawgs diff --git a/src/Jackett/Definitions/hdclub.yml b/src/Jackett/Definitions/hdclub.yml new file mode 100644 index 000000000..365e7ce0d --- /dev/null +++ b/src/Jackett/Definitions/hdclub.yml @@ -0,0 +1,92 @@ +--- + site: hdclub + name: HDClub + language: ru-ru + encoding: windows-1251 + links: + - http://hdclub.org + + caps: + categories: + 70: Movies # Animation + 71: Movies # Movie + 81: Audio # HD Audio + 78: TV/Documentary # Documentary + 68: Audio/Video # Music Video + 64: TV # TV Show + 62: TV/Sport # Sport + 82: Other # Demo + + modes: + search: [q] + tv-search: [q, season, ep] + + login: + path: login.php + method: form + captcha: + type: image + image: img#captcha + input: imagestring + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + error: + - selector: td.embedded > div.error + test: + path: browse.php + + search: + path: browse.php + inputs: + $raw: "{{range .Categories}}c{{.}}=1&{{end}}" + search: "{{ .Query.Keywords }}" + dsearch: "" + stype: "or" + incldead: "1" + webdl: "0" + 3d: "0" + rows: + selector: tbody#highlighted > tr + fields: + download: + selector: a[href^="details.php?id="] + attribute: href + filters: + - name: replace + args: ["details.php", "download.php"] + title: + selector: a[href^="details.php?id="] + category: + selector: a[href^="browse.php?cat="] + attribute: href + filters: + - name: querystring + args: cat + date: + selector: div#frame > div#cleft > font + filters: + - name: append + args: " +02:00" + - name: dateparse + args: "2006-01-02 15:04:05 -07:00" + seeders: + selector: td:nth-child(5) + leechers: + selector: td:nth-child(6) + grabs: + selector: td:nth-child(7) b + filters: + - name: regexp + args: ([\d,]+) + size: + selector: td:nth-child(7) + remove: a, br, b + downloadvolumefactor: + case: + img[src="pic/freedownload.gif"]: "0" + img[src="pic/silver.gif"]: "0.5" + "*": "1" + uploadvolumefactor: + case: + "*": "1" \ No newline at end of file diff --git a/src/Jackett/Jackett.csproj b/src/Jackett/Jackett.csproj index 69d586d76..42817dffc 100644 --- a/src/Jackett/Jackett.csproj +++ b/src/Jackett/Jackett.csproj @@ -477,6 +477,9 @@ PreserveNewest + + PreserveNewest + Designer