From f68381010fc995fa13f2f6a882e3accc5e275bea Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 21 May 2023 17:02:30 +1200 Subject: [PATCH] add central torrent a Polish private site. resolves #14355 --- README.md | 1 + .../Definitions/centraltorrent.yml | 155 ++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 src/Jackett.Common/Definitions/centraltorrent.yml diff --git a/README.md b/README.md index ae7c9030e..539b8870d 100644 --- a/README.md +++ b/README.md @@ -303,6 +303,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * CartoonChaos (CC) * Cathode-Ray.Tube (CRT) * CCFBits [![(invite needed)][inviteneeded]](#) + * Central Torrent * CeskeForum * CGPeers [![(invite needed)][inviteneeded]](#) * CHDBits [![(invite needed)][inviteneeded]](#) diff --git a/src/Jackett.Common/Definitions/centraltorrent.yml b/src/Jackett.Common/Definitions/centraltorrent.yml new file mode 100644 index 000000000..1a4ac7540 --- /dev/null +++ b/src/Jackett.Common/Definitions/centraltorrent.yml @@ -0,0 +1,155 @@ +--- +id: centraltorrent +name: Central Torrent +description: "Central Torrent is a POLISH Private Torrent Tracker for MOVIES / MUSIC" +language: pl-PL +type: private +encoding: ISO-8859-2 +links: + - http://central-torrent.eu/ # site does not support https NET::ERR_CERT_AUTHORITY_INVALID + +caps: + categorymappings: + - {id: 23, cat: TV/Anime, desc: "Animowane"} + - {id: 1, cat: PC, desc: "Aplikacje"} + - {id: 26, cat: Movies, desc: "Dzieci/Bajki"} + - {id: 29, cat: Books/EBook, desc: "E-books"} + - {id: 20, cat: Movies/SD, desc: "Filmy/DVD"} + - {id: 22, cat: Movies/SD, desc: "Filmy/RMVB"} + - {id: 35, cat: Movies/UHD, desc: "Filmy/UHD"} + - {id: 24, cat: Movies/HD, desc: "Filmy/x264"} + - {id: 36, cat: Movies/HD, desc: "Filmy/x265"} + - {id: 19, cat: Movies/SD, desc: "Filmy/XviD"} + - {id: 21, cat: Movies/SD, desc: "Filmy/XviD PL"} + - {id: 12, cat: PC/Games, desc: "Gry"} + - {id: 17, cat: PC/Games, desc: "Gry/Konsole"} + - {id: 4, cat: PC/Games, desc: "Gry/PC ISO"} + - {id: 28, cat: Other, desc: "GSM/PDA"} + - {id: 32, cat: Movies/BluRay, desc: "HD/Blu-ray"} + - {id: 31, cat: Audio/Lossless, desc: "Music/Lossless"} + - {id: 6, cat: Audio, desc: "Muzyka"} + - {id: 30, cat: Other, desc: "Rozne"} + - {id: 25, cat: TV/Sport, desc: "Sport"} + - {id: 27, cat: Audio/Video, desc: "Teledyski"} + - {id: 7, cat: TV, desc: "TV/Seriale"} + - {id: 9, cat: XXX, desc: "XXX"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + music-search: [q] + book-search: [q] + +settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false + - name: sort + type: select + label: Sort requested from site + default: 4 + options: + 4: created + 7: seeders + 5: size + 1: title + - name: type + type: select + label: Order requested from site + default: desc + options: + desc: desc + asc: asc + - name: info_tpp + type: info + label: Results Per Page + default: For best results, change the Torrents per page: setting to 100 on your account profile. + +login: + path: login.php + method: form + form: form[action="takelogin.php"] + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + captcha: + type: image + selector: img.cimage + input: captcha + error: + - selector: td.embedded:has(h2:contains("failed")) + - selector: td.embedded:has(h2:contains("Error")) + test: + path: my.php + +download: + selectors: + - selector: a[href^="download.php/"] + attribute: href + +search: + paths: + - path: browse.php + inputs: + $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" + search: "{{ .Keywords }}" + # 0 active, 1 all, 2 dead, 3 freeleech + incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}" + # 0 all, 1 polish, 2 non-polish + polish: 0 + # 0 name + blah: 0 + sort: "{{ .Config.sort }}" + type: "{{ .Config.type }}" + + rows: + selector: table[onMouseover] > tbody > tr:has(a[href^="details.php?id="]) + + 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 + files: + selector: td:nth-child(3) + date: + selector: td:nth-child(5) + # auto adjusted by site account profile + filters: + - name: dateparse + args: "yyyy-MM-ddHH:mm:ss" + size: + selector: td:nth-child(7) + grabs: + selector: td:nth-child(8) + seeders: + selector: td:nth-child(9) + leechers: + selector: td:nth-child(10) + downloadvolumefactor: + case: + img[src="pic/freedownload.gif"]: 0 + "*": 1 + uploadvolumefactor: + text: 1 + minimumratio: + text: 1.0 +# tbsource