From 7dcb351a212d2b5819f8d164443696666943eaae Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 25 Mar 2021 16:58:21 +1300 Subject: [PATCH] add huntorrent a semi-private Hungarian site. resolves #10771 --- README.md | 1 + src/Jackett.Common/Definitions/huntorrent.yml | 166 ++++++++++++++++++ 2 files changed, 167 insertions(+) create mode 100644 src/Jackett.Common/Definitions/huntorrent.yml diff --git a/README.md b/README.md index ad722db4f..d7cd6a5be 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * ExtremlymTorrents (XTR) * Genesis-Movement * HamsterStudio + * HunTorrent * IV-Torrents * KinoNaVse100 * Kinorun diff --git a/src/Jackett.Common/Definitions/huntorrent.yml b/src/Jackett.Common/Definitions/huntorrent.yml new file mode 100644 index 000000000..3b9a44905 --- /dev/null +++ b/src/Jackett.Common/Definitions/huntorrent.yml @@ -0,0 +1,166 @@ +--- +id: huntorrent +name: HunTorrent +description: "HunTorrent is a Hungarian Semi-Private site for MOVIES / TV / GENERAL" +language: hu-hu +type: semi-private +encoding: UTF-8 +links: + - https://huntorrent.net/ + +caps: + categorymappings: + - {id: 28, cat: Movies/SD, desc: "Cam/ENG"} + - {id: 27, cat: Movies/SD, desc: "Cam/HUN"} + - {id: 4, cat: Movies/DVD, desc: "DVDR/ENG"} + - {id: 3, cat: Movies/DVD, desc: "DVDR/HUN"} + - {id: 6, cat: Movies/HD, desc: "HD/ENG"} + - {id: 5, cat: Movies/HD, desc: "HD/HUN"} + - {id: 29, cat: Movies, desc: "Mese/ENG"} + - {id: 30, cat: Movies, desc: "Mese/HUN"} + - {id: 8, cat: TV/SD, desc: "Sorozat/ENG"} + - {id: 31, cat: TV/HD, desc: "Sorozat/HD/ENG"} + - {id: 9, cat: TV/HD, desc: "Sorozat/HD/HUN"} + - {id: 7, cat: TV/SD, desc: "Sorozat/HUN"} + - {id: 2, cat: Movies/SD, desc: "XviD/ENG"} + - {id: 1, cat: Movies/SD, desc: "XviD/HUN"} + - {id: 25, cat: Other, desc: "Kép"} + - {id: 24, cat: Books, desc: "eBook/ENG"} + - {id: 23, cat: Books, desc: "eBook/HUN"} + - {id: 38, cat: Audio/Audiobook, desc: "Hangoskönyv"} + - {id: 17, cat: PC/Games, desc: "Játék/ISO"} + - {id: 18, cat: PC/Games, desc: "Játék/RIP"} + - {id: 19, cat: Console, desc: "Konzol"} + - {id: 26, cat: PC/Mobile-Other, desc: "Mobil"} + - {id: 20, cat: PC/ISO, desc: "Program/ISO"} + - {id: 21, cat: PC/0day, desc: "Program/RIP"} + - {id: 13, cat: Audio/Video, desc: "Klip/ENG"} + - {id: 12, cat: Audio/Video, desc: "Klip/HUN"} + - {id: 11, cat: Audio/MP3, desc: "MP3/ENG"} + - {id: 10, cat: Audio/MP3, desc: "MP3/HUN"} + + modes: + search: [q] + tv-search: [q, season, ep, imdbid] + movie-search: [q, imdbid] + music-search: [q] + book-search: [q] + +settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: sort + type: select + label: Sort requested from site + default: 4 + options: + 1: name + 4: created + 7: seeders + 5: size + - name: type + type: select + label: Order requested from site + default: desc + options: + desc: desc + asc: asc + - name: info + 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#loginForm + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + login: yes + # error: using some kind of JS popup that can not be trapped :-( + test: + path: browse.php + selector: a[href^="logout.php?k="] + +search: + paths: + # https://huntorrent.net/browse.php?time=1616615308&korhatar=0&incldead=1&xyz=yes&c28=1&c27=1&c6=1&c5=1&sort=4&type=desc + - path: browse.php + inputs: + $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" + viewMode: "" + xyz: yes + search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" + # Age Limit: 0 all, 1 no, 5 6, 2 12, 3 16, 4 18 + korhatar: 0 + # 0 active, 1 all, 2 dead, 3 my uploads, 4 my bookmarks + incldead: 1 + sort: "{{ .Config.sort }}" + type: "{{ .Config.type }}" + # no freeleech atm + + rows: + selector: table[align="center"][cellpadding="5"] > tbody > tr[id^="torrent-main-"] + + fields: + id: + selector: a.download-link + attribute: data-id + category: + selector: a[href^="browse.php?cat="] + attribute: href + filters: + - name: querystring + args: cat + title: + selector: a[href^="#details_tr_"] + attribute: title + filters: + - name: replace + args: ["Név: ", ""] + details: + text: "details.php?id={{ .Result.id }}" + download: + selector: a[href^="download.php?torrent="] + attribute: href + description: + selector: td:nth-child(2) div:nth-child(2) + imdb: + selector: a[href*="imdb.com/title/tt"] + attribute: href + poster: + selector: a[href^="torrents_data/posters/"] + attribute: href + date: + selector: td:nth-last-child(6) + filters: + - name: append + args: " +01:00" # CET + - name: dateparse + args: "2006-01-02 15:04:05 -07:00" + size: + selector: td:nth-last-child(5) b + grabs: + selector: td:nth-last-child(4) + filters: + - name: replace + args: ["x", ""] + seeders: + selector: td:nth-last-child(3) + leechers: + selector: td:nth-last-child(2) + downloadvolumefactor: + text: 1 + uploadvolumefactor: + text: 2 + minimumratio: + text: 1.0 + minimumseedtime: + # 32 hours (as seconds = 32 x 60 x 60) + text: 115200 +# engine n/a