From 5f15651e19f31c00b797c287662793dd1f4da80e Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 23 Jun 2019 16:44:37 +1200 Subject: [PATCH] add libranet a Hungarian Private music / ebook site. resolves #5528 --- README.md | 1 + src/Jackett.Common/Definitions/libranet.yml | 107 ++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 src/Jackett.Common/Definitions/libranet.yml diff --git a/README.md b/README.md index be773aa57..3e53a94b4 100644 --- a/README.md +++ b/README.md @@ -260,6 +260,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Kapaki * Karagarga * Le Saloon + * LibraNet (LN) * LinkoManija * LosslessClub * M-Team TP (MTTP) diff --git a/src/Jackett.Common/Definitions/libranet.yml b/src/Jackett.Common/Definitions/libranet.yml new file mode 100644 index 000000000..e8ccf32e1 --- /dev/null +++ b/src/Jackett.Common/Definitions/libranet.yml @@ -0,0 +1,107 @@ +--- + site: libranet + name: LibraNet + description: "LibraNet (LN) is a HUNGARIAN Private Torrent Tracker for EBOOKS / LOSSLESS MUSIC" + language: hu + type: private + encoding: ISO-8859-2 + links: + - https://libranet.org/ + + caps: + categorymappings: + - {id: 50, cat: Movies, desc: "Film"} + - {id: 51, cat: Movies, desc: "Film/Hun"} + - {id: 3, cat: Audio/Audiobook, desc: "Hangoskönyv"} + - {id: 4, cat: Audio/Audiobook, desc: "Hangoskönyv/Hun"} + - {id: 1, cat: Books/Ebook, desc: "Könyv"} + - {id: 2, cat: Books/Ebook, desc: "Könyv/Hun"} + - {id: 56, cat: Audio/Lossless, desc: "LossLess"} + - {id: 57, cat: Audio/Lossless, desc: "LossLess/Hun"} + - {id: 48, cat: Books/Magazines, desc: "Magazin"} + - {id: 49, cat: Books/Magazines, desc: "Magazin/Hun"} + + modes: + search: [q] + + login: + path: takelogin.php + method: post + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + error: + - selector: td.text:contains("Error") + message: + selector: td.text + test: + path: / + selector: a[href="/logout.php"] + + search: + paths: + # http://libranet.org/browse.php?cat56=1&cat57=1&search=&searchwhere=&subcat=&musicstyle=&format= + - path: browse.php + inputs: + $raw: "{{range .Categories}}cat{{.}}=1&{{end}}" + search: "{{.Keywords}}" + searchwhere: "" + subcat: "" + musicstyle: "" + format: "" + + rows: + selector: table.rounded tr:has(a[href^="browse.php?cat="]) + 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 + filters: + - name: replace + args: ["details", "download"] + - name: replace + args: ["&hit=1", ""] + description: + selector: img[width="60"] + attribute: title + banner: + selector: a[onmouseover] + optional: true + attribute: onmouseover + filters: + - name: regexp + args: "src=(.*?) width" + date: + selector: td:nth-last-child(7) + filters: + - name: dateparse + args: "2006-01-0215:04:05" + size: + selector: td:nth-last-child(6) + grabs: + selector: td:nth-last-child(5) + filters: + - name: regexp + args: "(\\d+) x" + seeders: + selector: td:nth-last-child(4) + leechers: + selector: td:nth-last-child(3) + downloadvolumefactor: + case: + img[src$="/pic/freeleech.gif"]: 0 + "*": "1" + uploadvolumefactor: + case: + "*": "1" \ No newline at end of file