From fb5c82ff85dfab2a91f2ea7d05fccce5fe0c80d2 Mon Sep 17 00:00:00 2001 From: halali Date: Fri, 15 Sep 2017 08:15:40 +0200 Subject: [PATCH] Add Back-ups and SkTorrent trackers (#1830) * Fix Date and inprove seasson searching for CzTorrent * Update title filter * Add Back-ups and SkTorrent * Update reabme * Update backups.yml --- README.md | 2 + src/Jackett/Definitions/backups.yml | 121 ++++++++++++++++++++++++ src/Jackett/Definitions/cztorrent.yml | 6 +- src/Jackett/Definitions/sktorrent.yml | 131 ++++++++++++++++++++++++++ 4 files changed, 259 insertions(+), 1 deletion(-) create mode 100644 src/Jackett/Definitions/backups.yml create mode 100644 src/Jackett/Definitions/sktorrent.yml diff --git a/README.md b/README.md index cf49b7d5b..8d374440e 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Gay-Torrents.net * NetHD * RuTracker + * SkTorrent * TorrentBytes * Xtreme Zone * YggTorrent @@ -83,6 +84,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Awesome-HD * Avistaz * B2S-Share + * Back-ups * BakaBT [![(invite needed)][inviteneeded]](#) * bB * BeyondHD diff --git a/src/Jackett/Definitions/backups.yml b/src/Jackett/Definitions/backups.yml new file mode 100644 index 000000000..0712c1e79 --- /dev/null +++ b/src/Jackett/Definitions/backups.yml @@ -0,0 +1,121 @@ + site: back-ups + name: Back-ups + language: en-us + type: private + encoding: UTF-8 + links: + - https://back-ups.me/ + + caps: + categorymappings: + - {id: 12, cat: Console, desc: "XBOX360"} + - {id: 9, cat: TV, desc: "TV-Boxsets"} + - {id: 3, cat: PC, desc: "Apps"} + - {id: 24, cat: PC, desc: "Apple"} + - {id: 11, cat: TV, desc: "TV/x264"} + - {id: 23, cat: Console, desc: "Visionary"} + - {id: 14, cat: Sport, desc: "WWE"} + - {id: 26, cat: Console, desc: "Xbox"} + - {id: 13, cat: Console, desc: "XBOX-JTAG"} + - {id: 35, cat: Movies/Other, desc: "Anime"} + - {id: 4, cat: Movies/BluRay, desc: "Blu-Ray"} + - {id: 6, cat: Movies, desc: ">Movies/XVID"} + - {id: 10, cat: TV, desc: "TV/Xvid"} + - {id: 29, cat: Sport, desc: "Sport"} + - {id: 40, cat: TV, desc: "Soaps"} + - {id: 27, cat: Console, desc: "Roms and Emulators"} + - {id: 30, cat: Console, desc: "Playstation"} + - {id: 7, cat: Audio, desc: "Music"} + - {id: 16, cat: TV/Documentary, desc: "Docu"} + - {id: 5, cat: Books, desc: "EBooks"} + - {id: 38, cat: Console, desc: "Hyperspin Bolt-on Edition<"} + - {id: 34, cat: TV, desc: "Kids"} + - {id: 8, cat: PC/Games, desc: "PC Games"} + - {id: 22, cat: PC/Games, desc: "CoinOPS"} + - {id: 33, cat: Sport, desc: "MMA/Boxing"} + - {id: 32, cat: Movies, desc: "Movie Pack"} + - {id: 31, cat: Console, desc: "Nintendo"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + login: + path: /takelogin.php + method: post + inputs: + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + error: + - selector: td:contains("remaining tries") + test: + path: browse.php + selector: a[href*="/logout.php"] + + search: + path: browse.php + keywordsfilters: + # remove words <= 3 characters and surrounding special characters + - name: re_replace + args: ["(?:^|\\s)[_\\+\\/\\.\\-\\(\\)]*[\\S]{0,3}[_\\+\\/\\.\\-\\(\\)]*(?:\\s|$)", " "] + inputs: + do: "search" + keywords: "{{ .Keywords }}" + search_type: "t_name" + category: "0" # multi cat search not supported + include_dead_torrents: "yes" + rows: + selector: table#sortabletable > tbody > tr:has(a[href*="/details.php?id="]) + filters: + - name: andmatch + args: 66 + fields: + title: + selector: a[href*="/details.php?id="] + title: + optional: true + selector: div.tooltip-content > div + details: + selector: a[href*="/details.php?id="] + attribute: href + download: + selector: a[href*="/download.php?id="] + attribute: href + magnet: + selector: a[href^="magnet:?xt="] + attribute: href + category: + selector: a[href*="/browse.php?category="] + attribute: href + filters: + - name: querystring + args: category + size: + selector: td:nth-child(5) + grabs: + selector: td:nth-child(6) + seeders: + selector: td:nth-child(7) + leechers: + selector: td:nth-child(8) + date: + selector: "td:nth-child(2) > div:has(span[style=\"float: right;\"])" + remove: span + filters: + - name: append + args: " +00:00" + - name: dateparse + args: "02-01-2006 15:04 -07:00" + banner: + optional: true + selector: div.tooltip-content > img + attribute: src + downloadvolumefactor: + case: + img[alt^="Free Torrent "]: "0" + img[alt^="Silver Torrent "]: "0.5" + "*": "1" + uploadvolumefactor: + case: + "*": "1" diff --git a/src/Jackett/Definitions/cztorrent.yml b/src/Jackett/Definitions/cztorrent.yml index 15d841926..fbd7075ba 100644 --- a/src/Jackett/Definitions/cztorrent.yml +++ b/src/Jackett/Definitions/cztorrent.yml @@ -64,8 +64,12 @@ filters: - name: re_replace args: [".*? / ", ""] + - name: diacritics + args: replace - name: replace - args: ["série", "Season"] + args: ["serie", ""] + - name: replace + args: ["Serie", ""] - name: re_replace args: ["(\\d{2})\\.", "S$1"] - name: re_replace diff --git a/src/Jackett/Definitions/sktorrent.yml b/src/Jackett/Definitions/sktorrent.yml new file mode 100644 index 000000000..2bcf74479 --- /dev/null +++ b/src/Jackett/Definitions/sktorrent.yml @@ -0,0 +1,131 @@ +--- + site: sktorrent + name: SkTorrent + language: cs-cz + type: semi-private + encoding: windows-1250 + links: + - http://sktorrent.eu/torrent/ + + caps: + categorymappings: + - {id: 1, cat: Movies, desc: "Filmy CZ/SK dabing"} + - {id: 16, cat: TV, desc: "Seriály"} + - {id: 17, cat: TV, desc: "Dokument"} + - {id: 42, cat: TV, desc: "TV Pořad"} + - {id: 44, cat: TV, desc: "Sport"} + - {id: 22, cat: Audio, desc: "Autorska Hudba"} + - {id: 21, cat: PC, desc: "Programy"} + - {id: 3, cat: Movies/3D, desc: "3D Filmy"} + - {id: 14, cat: Movies/Other, desc: "Filmy Kamera"} + - {id: 15, cat: Movies, desc: "Filmy s titulkama"} + - {id: 20, cat: Movies/DVD, desc: "DVD Filmy"} + - {id: 31, cat: Movies, desc: "Filmy bez titulků"} + - {id: 5, cat: Movies, desc: "Filmy Kreslené"} + - {id: 19, cat: Movies/HD, desc: "HD Filmy"} + - {id: 29, cat: Movies/3D, desc: "3D Blu-ray"} + - {id: 43, cat: Movies/HD, desc: "UHD Filmy"} + - {id: 28, cat: Movies/BluRay, desc: "Blu-ray"} + - {id: 18, cat: PC/Games, desc: "Hry na Windows"} + - {id: 30, cat: PC/Games, desc: "Hry na Konzole"} + - {id: 37, cat: PC/Games, desc: "Hry na Linux"} + - {id: 2, cat: Audio, desc: "Hudba"} + - {id: 55, cat: Other, desc: "Neschválené"} + - {id: 23, cat: Books, desc: "Knihy a Časopisy"} + - {id: 24, cat: Audio, desc: "Mluvené slovo"} + - {id: 27, cat: PC/Phone-Other, desc: "Mobil, PDA"} + - {id: 25, cat: Other, desc: "Ostatní"} + - {id: 45, cat: Audio, desc: "Soundtrack"} + - {id: 26, cat: Audio/Video, desc: "Hudební videa"} + - {id: 9, cat: XXX, desc: "xXx"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + login: + path: /torrent/login.php + method: form + form: form[action^="login.php?returnto=index.php"] + inputs: + uid: "{{ .Config.username }}" + pwd: "{{ .Config.password }}" + error: + - selector: font:contains("Incorrect") + test: + path: /torrent/index.php + + search: + path: /torrent/torrents.php + inputs: + search: "{{ .Keywords }}" + category: "{{range .Categories}}{{.}};{{end}}" + active: "1" + keywordsfilters: + - name: diacritics + args: replace + rows: + selector: table.lista > tbody > tr > td > table.lista > tbody > tr:has(a[href^="details.php?id="]) + fields: + title: + selector: td.lista a[href^="details.php?id="] + attribute: title + filters: + - name: re_replace + args: [".*? / ", ""] + - name: diacritics + args: replace + - name: replace + args: ["serie", ""] + - name: replace + args: ["Serie", ""] + - name: re_replace + args: ["(\\d{2})\\.", "S$1"] + - name: re_replace + args: ["(\\d{1})\\.", "S0$1"] + category: + selector: td:nth-child(1) a[href^="torrents.php?category="] + attribute: href + filters: + - name: querystring + args: category + details: + selector: td.lista a[href^="details.php?id="] + attribute: href + download: + selector: td.lista a[href^="download.php?id="] + attribute: href + size: + selector: td:nth-child(3) + filters: + - name: split + args: [ "|", 0 ] + - name: regexp + args: "Velkost (.+?) ?$" + date: + selector: td:nth-child(3) + filters: + - name: split + args: [ "|", 1 ] + - name: replace + args: ["Pridany ", ""] + - name: replace + args: ["o ", ""] + - name: dateparse + args: "02/01/2006 15:04" + seeders: + selector: td:nth-child(5) > a + leechers: + selector: td:nth-child(6) > a + grabs: + selector: td:nth-child(7) + filters: + - name: replace + args: ["---", "0"] + downloadvolumefactor: + case: + "*": "1" + uploadvolumefactor: + case: + "*": "1" \ No newline at end of file