From cfcca034707f1ffe435f6e642c81d036bed1ee94 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 28 Jun 2021 11:38:56 +1200 Subject: [PATCH] add elitetorrent back resolves #9873 --- README.md | 1 + .../Definitions/elitetorrent-biz.yml | 146 ++++++++++++++++++ src/Jackett.Updater/Program.cs | 1 - 3 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 src/Jackett.Common/Definitions/elitetorrent-biz.yml diff --git a/README.md b/README.md index df3421f83..b0e753620 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht * Demonoid * dmhy * E-Hentai + * elitetorrent * emtrek * Erai-Raws * ETTV diff --git a/src/Jackett.Common/Definitions/elitetorrent-biz.yml b/src/Jackett.Common/Definitions/elitetorrent-biz.yml new file mode 100644 index 000000000..a7f9b94e8 --- /dev/null +++ b/src/Jackett.Common/Definitions/elitetorrent-biz.yml @@ -0,0 +1,146 @@ +--- +id: elitetorrent-biz +name: EliteTorrent.biz +description: "EliteTorrent.biz is a Public torrent site for TV, movies and documentaries" +language: es-es +type: public +encoding: UTF-8 +links: + - https://www.elitetorrent.com/ +legacylinks: + - https://www.elitetorrent.biz/ + - https://www.elitetorrent.io/ + - https://www.elitetorrent.one/ + - https://www.elitetorrent.is/ + - https://www.elitetorrent.nu/ + - https://www.elitetorrent.tv/ + - https://www.elitetorrent.li/ + - https://www.elitetorrent.bz/ + - https://www.elitetorrent.nl/ + - https://wwvv.elitetorrent.nl/ + - https://wvvw.elitetorrent.nl/ + - https://vvww.elitetorrent.nl/ + - https://www.elitetorrent.to/ + - https://www.elitetorrent.se/ + +caps: + categories: + "series": TV + "peliculas": Movies + "other": Other + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + +settings: [] + +download: + selectors: + - selector: a[href^="magnet:?"] + attribute: href + +search: + # site returns just 30 results, attempt to fetch upto 90 + paths: + - path: / + - path: /page/2/ + - path: /page/3/ + keywordsfilters: + # most ES/ITA TV torrents are in XXxYY format, so we search without S/E prefixes and filter later + - name: re_replace + args: ["(?i)S0?(\\d{1,2})", " $1 "] + - name: re_replace + args: ["(?i)E(\\d{2,3})", " $1 "] + inputs: + s: "{{ .Keywords }}" + $raw: "&x=0&y=0" + + rows: + selector: "#principal .miniboxs-ficha li" + filters: + - name: andmatch + + fields: + quality: + selector: span:nth-of-type(2) > i + filters: + - name: replace + args: ["---", ""] + language: + selector: span#idiomacio > i > img + attribute: title + filters: + - name: replace + args: ["Pelicula en ", ""] + - name: replace + args: ["Español Latino", "LATiN SPANiSH"] + - name: replace + args: ["Español Castellano", "SPANiSH"] + - name: replace + args: ["Ingles", "English"] + - name: replace + args: ["Subtitulado", " SPASUBS"] + - name: replace + args: ["VOSE", ""] + _title: + selector: div.imagen > a + attribute: title + # normalize to SXXEYY format + filters: + - name: replace + args: [" – ", " "] + - name: replace + args: ["(", ""] + - name: replace + args: [")", ""] + - name: re_replace + args: ["(\\d{2})×(\\d{2})", "S$1E$2"] + - name: re_replace + args: ["(\\d{1})×(\\d{2})", "S0$1E$2"] + title: + text: "{{ .Result._title}} {{ .Result.language }} {{ .Result.quality }}" + details: + selector: .meta a + attribute: href + download: + selector: .meta a + attribute: href + banner: + selector: .imagen img + attribute: data-src + category_movie: + selector: .meta a + attribute: href + filters: + - name: regexp + args: "^.*/(peliculas)/.*$" + category_tv: + selector: .meta a + attribute: href + filters: + - name: regexp + args: "^.*/(series)/.*$" + category: + text: "{{ if or .Result.category_movie .Result.category_tv }}{{ or .Result.category_movie .Result.category_tv }}{{ else }}other{{ end }}" + size: + text: "0 B" + size: + # size can be missing + optional: true + selector: .voto1 + filters: + - name: replace + args: ["s", ""] + date: + text: now + seeders: + text: 1 + leechers: + text: 1 + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# engine n/a diff --git a/src/Jackett.Updater/Program.cs b/src/Jackett.Updater/Program.cs index ecb4abcdb..fe4275419 100644 --- a/src/Jackett.Updater/Program.cs +++ b/src/Jackett.Updater/Program.cs @@ -302,7 +302,6 @@ namespace Jackett.Updater "Definitions/dxdhd.yml", "Definitions/eggmeon.yml", "Definitions/elitehd.yml", - "Definitions/elitetorrent-biz.yml", "Definitions/elittracker.yml", "Definitions/epizod.yml", "Definitions/eotforum.yml",