From 7830b426418cffaa6dbb684d4374f86577de316e Mon Sep 17 00:00:00 2001 From: kaso17 Date: Tue, 24 Jan 2017 16:57:38 +0100 Subject: [PATCH] Add EZTV/KickAssTorrent/The Pirate Bay/Torrent411 from cardigann --- README.md | 4 + src/Jackett/Definitions/eztv.yml | 44 +++++++++ src/Jackett/Definitions/kickasstorrent.yml | 59 ++++++++++++ src/Jackett/Definitions/t411.yml | 102 +++++++++++++++++++++ src/Jackett/Definitions/thepiratebay.yml | 62 +++++++++++++ src/Jackett/Jackett.csproj | 12 +++ 6 files changed, 283 insertions(+) create mode 100644 src/Jackett/Definitions/eztv.yml create mode 100644 src/Jackett/Definitions/kickasstorrent.yml create mode 100644 src/Jackett/Definitions/t411.yml create mode 100644 src/Jackett/Definitions/thepiratebay.yml diff --git a/README.md b/README.md index 1d891b50d..4c1c28004 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * EoT-Forum * eStone * Ethor.net (Thor's Land) + * EZTV * FANO.IN * FileList * Freedom-HD @@ -104,6 +105,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * QcTorrent * RapideTracker * RevolutionTT + * KickAssTorrent * Rockhard Lossless * RuTracker * SceneAccess @@ -119,11 +121,13 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Superbits * The Horror Charnel * The New Retro + * The Pirate Bay * The Shinning * TehConnection * TenYardTracker * Torrent Network * Torrent Sector Crew + * Torrent411 * TorrentBD * TorrentBytes * TorrentDay diff --git a/src/Jackett/Definitions/eztv.yml b/src/Jackett/Definitions/eztv.yml new file mode 100644 index 000000000..47052e5c2 --- /dev/null +++ b/src/Jackett/Definitions/eztv.yml @@ -0,0 +1,44 @@ +--- + site: eztv + name: EZTV + language: en-us + links: + - https://eztv.ag/ + + caps: + categories: + 1: TV + + modes: + tv-search: [q, season, ep] + + search: + path: "{{if .Query.Keywords}}search/{{ .Query.Keywords}}{{else}}/{{end}}" + rows: + selector: "table.forum_header_border tr[name='hover'].forum_header_border" + filters: + - name: andmatch + fields: + category: + text: 1 + title: + selector: td:nth-child(2) a + details: + selector: td:nth-child(2) a + attribute: href + download: + selector: td:nth-child(3) a.magnet, td:nth-child(3) a + attribute: href + size: + selector: td:nth-child(4) + date: + selector: td:nth-child(5) + filters: + - name: append + args: " ago" + seeders: + selector: td:nth-child(6) + downloadvolumefactor: + text: "0" + uploadvolumefactor: + text: "1" diff --git a/src/Jackett/Definitions/kickasstorrent.yml b/src/Jackett/Definitions/kickasstorrent.yml new file mode 100644 index 000000000..e3e6c6e96 --- /dev/null +++ b/src/Jackett/Definitions/kickasstorrent.yml @@ -0,0 +1,59 @@ +--- + site: kickasstorrent + name: KickAssTorrent + language: en-us + encoding: UTF-8 + links: + - https://kat.how + + caps: + categories: + movies: Movies + tv: TV + music: Audio + books: Books + Games: Console + applications: PC + xxx: XXX + other: Other + + modes: + search: [q] + tv-search: [q, season, ep] + + search: + path: "search.php" + inputs: + q: "{{ .Query.Keywords }}" + rows: + selector: table[class="data"] tr[id] + fields: + category: + selector: span[id^="cat_"] > strong > a + attribute: href + filters: + - name: trim + args: / + title: + selector: td:nth-child(1) > div > div > a[class="cellMainLink"] + details: + selector: td:nth-child(1) > div > div > a[class="cellMainLink"] + attribute: href + download: + selector: td:nth-child(1) > div > a[data-download=""] + attribute: href + size: + selector: td:nth-child(2) + date: + selector: td:nth-child(3) + seeders: + selector: td:nth-child(4) + leechers: + selector: td:nth-child(5) + description: + selector: td:nth-child(1) > div > div > span + downloadvolumefactor: + text: "0" + uploadvolumefactor: + text: "1" + diff --git a/src/Jackett/Definitions/t411.yml b/src/Jackett/Definitions/t411.yml new file mode 100644 index 000000000..64ffd0758 --- /dev/null +++ b/src/Jackett/Definitions/t411.yml @@ -0,0 +1,102 @@ +--- + site: t411 + name: Torrent411 + language: fr-fr + encoding: UTF-8 + links: + - https://t411.li + + caps: + categories: + 395: Audio + 623: Audio + 642: Audio/Other + 405: Audio/Audiobook + 406: Books + 407: Books/Comics + 408: Books + 409: Books + 410: Books/Magazines + 246: PC/Games + 393: Other + 235: PC/Mac + 236: PC + 625: PC/Phone-Other + 638: PC + 629: PC + 455: TV/Anime + 637: TV/Anime + 633: TV/Other + 634: TV/Documentary + 639: TV + 631: Movies + 433: TV + 635: TV/Other + 636: TV/Sport + 461: XXX/Other + 462: XXX/Other + 632: XXX + 641: XXX + + modes: + search: [q] + tv-search: [q, season, ep] + + login: + path: /users/login/ + method: post + inputs: + login: "{{ .Config.username }}" + password: "{{ .Config.password }}" + error: + - selector: div#messages > p + test: + path: /torrents/search/ + selector: a.logout + + ratio: + path: / + selector: div.loginBar > span:nth-child(7) > strong + filters: + - name: replace + args: [",", "."] + + search: + path: "/torrents/search/" + inputs: + $raw: "{{range .Categories}}subcat={{.}}&{{end}}" + search: "{{ .Query.Keywords }}" + rows: + selector: table > tbody > tr + fields: + category: + selector: td:nth-child(1) > a + attribute: href + filters: + - name: querystring + args: subcat + title: + selector: td:nth-child(2) > a:nth-child(1) + attribute: title + details: + selector: td:nth-child(2) > a:nth-child(1) + attribute: href + download: + selector: td:nth-child(3) > a + attribute: href + filters: + - name: replace + args: ["/torrents/nfo/?id=", "/torrents/download/?id="] + size: + selector: td:nth-child(6) + seeders: + selector: td.up + leechers: + selector: td.down + date: + selector: td:nth-child(2) > dl > dd:nth-child(2) + filters: + - name: dateparse + args: "2006-01-02 15:04:05 (-07:00)" + grabs: + selector: td:nth-child(7) \ No newline at end of file diff --git a/src/Jackett/Definitions/thepiratebay.yml b/src/Jackett/Definitions/thepiratebay.yml new file mode 100644 index 000000000..df913c709 --- /dev/null +++ b/src/Jackett/Definitions/thepiratebay.yml @@ -0,0 +1,62 @@ +--- + site: thepiratebay + name: The Pirate Bay + language: en-us + links: + - https://thepiratebay.org/ + - https://thepiratesbay.pw/ + - https://tproxy.pro/ + + caps: + categories: + 201: Movies + 202: Movies/DVD + 203: Audio/Video # Music videos + 204: Movies/Other # Movie clips + 205: TV + 206: TV/Other # Handheld + 207: Movies/HD + 208: TV/HD + 209: Movies/3D + 299: Movies/Other + + modes: + tv-search: [q, season, ep] + + search: + path: "{{if .Query.Keywords}}search/{{ .Query.Keywords}}/0/99/0{{else}}/recent{{end}}" + rows: + selector: "#searchResult tbody tr:has(td.vertTh)" + fields: + category: + selector: td:nth-child(1) a:last-child + attribute: href + filters: + - name: split + args: [ "/", -1 ] + title: + selector: .detLink + details: + selector: .detLink + attribute: href + download: + selector: td:nth-child(2) a[title^="Download"] + attribute: href + size: + selector: td:nth-child(2) font.detDesc + filters: + - name: regexp + args: "Size (.+?)," + date: + selector: td:nth-child(2) font.detDesc + filters: + - name: regexp + args: "Uploaded (.+?)," + seeders: + selector: td:nth-child(3) + leechers: + selector: td:nth-child(4) + downloadvolumefactor: + text: "0" + uploadvolumefactor: + text: "1" \ No newline at end of file diff --git a/src/Jackett/Jackett.csproj b/src/Jackett/Jackett.csproj index 91493b63e..76d2bcddc 100644 --- a/src/Jackett/Jackett.csproj +++ b/src/Jackett/Jackett.csproj @@ -558,6 +558,18 @@ PreserveNewest + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + Designer