From 3ee947c8a1554b25a9e131d0af88c7f2255ffa0b Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Sun, 9 Feb 2020 19:11:23 +0100 Subject: [PATCH] torrentfactory: add new private tracker. resolves #6740 (#7153) --- README.md | 21 ++- .../Definitions/torrentfactory.yml | 176 ++++++++++++++++++ 2 files changed, 187 insertions(+), 10 deletions(-) create mode 100644 src/Jackett.Common/Definitions/torrentfactory.yml diff --git a/README.md b/README.md index 55c0950b0..d00541ee2 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * 0day.kiev * 2 Fast 4 You - * 3D Torrents (3DT) + * 3D Torrents (3DT) * 3evils * 4thD (4th Dimension) * 52PT @@ -307,7 +307,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Hebits * Hon3y HD * HQSource (HQS) - * HuSh + * HuSh * ICE Torrent * ImmortalSeed (iS) * Immortuos @@ -430,6 +430,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * TorrentCCF (TCCF) * TorrentDay (TD) * Torrentech (TTH) + * TorrentFactory * TorrentHeaven * TorrentHR * Torrenting (TT) @@ -504,7 +505,7 @@ Jackett can also be run from the command line if you would like to see log messa ## Install on Linux (AMDx64) -On most operating systems all the required dependencies will already be present. In case they are not, you can refer to this page https://github.com/dotnet/core/blob/master/Documentation/linux-prereqs.md +On most operating systems all the required dependencies will already be present. In case they are not, you can refer to this page https://github.com/dotnet/core/blob/master/Documentation/linux-prereqs.md ### Install as service 1. Download and extract the latest `Jackett.Binaries.LinuxAMDx64.tar.gz` release from the [releases page](https://github.com/Jackett/Jackett/releases) @@ -514,21 +515,21 @@ On most operating systems all the required dependencies will already be present. Download and extract the latest `Jackett.Binaries.LinuxAMDx64.tar.gz` release from the [releases page](https://github.com/Jackett/Jackett/releases), open a Terminal, cd to the jackett folder and run Jackett with the command `./jackett` ### home directory -If you want to run it with a user without a /home directory you need to add `Environment=XDG_CONFIG_HOME=/path/to/folder` to your systemd file, this folder will be used to store your config files. +If you want to run it with a user without a /home directory you need to add `Environment=XDG_CONFIG_HOME=/path/to/folder` to your systemd file, this folder will be used to store your config files. ## Install on Linux (ARMv7 or above) -On most operating systems all the required dependencies will already be present. In case they are not, you can refer to this page https://github.com/dotnet/core/blob/master/Documentation/linux-prereqs.md +On most operating systems all the required dependencies will already be present. In case they are not, you can refer to this page https://github.com/dotnet/core/blob/master/Documentation/linux-prereqs.md ### Install as service -1. Download and extract the latest `Jackett.Binaries.LinuxARM32.tar.gz` or `Jackett.Binaries.LinuxARM64.tar.gz` (32 bit is the most common on ARM) release from the [releases page](https://github.com/Jackett/Jackett/releases) +1. Download and extract the latest `Jackett.Binaries.LinuxARM32.tar.gz` or `Jackett.Binaries.LinuxARM64.tar.gz` (32 bit is the most common on ARM) release from the [releases page](https://github.com/Jackett/Jackett/releases) 2. To install Jackett as a service, open a Terminal, cd to the jackett folder and run `sudo ./install_service_systemd.sh` You need root permissions to install the service. The service will start on each logon. You can always stop it by running `systemctl stop jackett.service` from Terminal. You can start it again it using `systemctl start jackett.service`. Logs are stored as usual under `~/.config/Jackett/log.txt` and also in `journalctl -u jackett.service`. ### Run without installing as a service Download and extract the latest `Jackett.Binaries.LinuxARM32.tar.gz` or `Jackett.Binaries.LinuxARM64.tar.gz` (32 bit is the most common on ARM) release from the [releases page](https://github.com/Jackett/Jackett/releases), open a Terminal, cd to the jackett folder and run Jackett with the command `./jackett` ### home directory -If you want to run it with a user without a /home directory you need to add `Environment=XDG_CONFIG_HOME=/path/to/folder` to your systemd file, this folder will be used to store your config files. +If you want to run it with a user without a /home directory you need to add `Environment=XDG_CONFIG_HOME=/path/to/folder` to your systemd file, this folder will be used to store your config files. ## Installation on Linux (ARMv6 or below) @@ -542,7 +543,7 @@ If you want to run it with a user without a /home directory you need to add `Env 3. Download and extract the latest `Jackett.Binaries.Mono.tar.gz` release from the [releases page](https://github.com/Jackett/Jackett/releases) and run Jackett using mono with the command `mono --debug JackettConsole.exe`. 4. (Optional) To install Jackett as a service, open the Terminal and run `sudo ./install_service_systemd_mono.sh` You need root permissions to install the service. The service will start on each logon. You can always stop it by running `systemctl stop jackett.service` from Terminal. You can start it again it using `systemctl start jackett.service`. Logs are stored as usual under `~/.config/Jackett/log.txt` and also in `journalctl -u jackett.service`. -If you want to run it with a user without a /home directory you need to add `Environment=XDG_CONFIG_HOME=/path/to/folder` to your systemd file, this folder will be used to store your config files. +If you want to run it with a user without a /home directory you need to add `Environment=XDG_CONFIG_HOME=/path/to/folder` to your systemd file, this folder will be used to store your config files. Mono must be compiled with the Roslyn compiler (default), using MCS will cause "An error has occurred." errors (See https://github.com/Jackett/Jackett/issues/2704). @@ -673,9 +674,9 @@ To use it, please just request a free API key on [OMDb](http://www.omdbapi.com/a ```bash -# manually install osx dotnet via: +# manually install osx dotnet via: https://dotnet.microsoft.com/download?initial-os=macos -# then: +# then: git clone https://github.com/Jackett/Jackett.git cd Jackett/src diff --git a/src/Jackett.Common/Definitions/torrentfactory.yml b/src/Jackett.Common/Definitions/torrentfactory.yml new file mode 100644 index 000000000..830389b80 --- /dev/null +++ b/src/Jackett.Common/Definitions/torrentfactory.yml @@ -0,0 +1,176 @@ +--- + site: torrentfactory + name: TorrentFactory + description: "TorrentFactory is a SPANISH site for General content" + language: es-es + type: private + encoding: ISO-8859-1 + links: + - https://torrentfactory.net/ + + caps: + categorymappings: + - {id: 6 , cat: Movies/DVD, desc: "DvD - DVD9"} + - {id: 7 , cat: Movies/DVD, desc: "DvD - DVD5"} + - {id: 12 , cat: Movies/Other, desc: "Estrenos - Taquilla"} + - {id: 105 , cat: Movies/Foreign, desc: "Estrenos - V.O.S.E."} + - {id: 14 , cat: TV/Anime, desc: "HD - Anime"} + - {id: 16 , cat: TV/Documentary, desc: "HD - Documentales"} + - {id: 17 , cat: TV/HD, desc: "HD - Animacion"} + - {id: 18 , cat: Audio/Video, desc: "HD - Musica"} + - {id: 19 , cat: Movies/HD, desc: "HD - Peliculas"} + - {id: 20 , cat: TV/HD, desc: "HD - Series"} + - {id: 86 , cat: TV/Sport, desc: "HD - Deportes"} + - {id: 87 , cat: Movies/3D, desc: "HD - 3D Full HD"} + - {id: 91 , cat: Movies/BluRay, desc: "HD - Blu Ray"} + - {id: 107 , cat: Movies/UHD, desc: "HD - 4K"} + - {id: 109 , cat: Movies/BluRay, desc: "HD - HDRemux"} + - {id: 23 , cat: PC/Games, desc: "Juegos - Emuladores"} + - {id: 24 , cat: Console, desc: "Juegos - Microsoft"} + - {id: 25 , cat: Console, desc: "Juegos - Nintendo"} + - {id: 26 , cat: PC/Games, desc: "Juegos - PC"} + - {id: 27 , cat: Console, desc: "Juegos - Sony"} + - {id: 29 , cat: Audio/Lossless, desc: "Música - Flac"} + - {id: 30 , cat: Audio/MP3, desc: "Música - MP3"} + - {id: 31 , cat: Audio/Other, desc: "Música - Otros"} + - {id: 73 , cat: Audio/Other, desc: "Música - Discografias"} + - {id: 35 , cat: PC/0day, desc: "Software - Linux"} + - {id: 36 , cat: PC/Mac, desc: "Software - Mac"} + - {id: 37 , cat: PC/0day, desc: "Software - Windows"} + - {id: 89 , cat: PC/Phone-Android, desc: "Software - Android"} + - {id: 52 , cat: Movies/HD, desc: "HDrip DVDrip - Peliculas"} + - {id: 53 , cat: TV, desc: "HDrip DVDrip - Series"} + - {id: 62 , cat: Audio/Video, desc: "HDrip DVDrip - Musica"} + - {id: 98 , cat: Movies/Foreign, desc: "HDrip DVDrip - V.O.S.E."} + - {id: 67 , cat: TV/HD, desc: "MicroHD - Animacion"} + - {id: 68 , cat: TV/HD, desc: "MicroHD - Series"} + - {id: 69 , cat: TV/Anime, desc: "MicroHD - Anime"} + - {id: 70 , cat: TV/Sport, desc: "MicroHD - Deportes"} + - {id: 71 , cat: TV/Documentary, desc: "MicroHD - Documentales"} + - {id: 72 , cat: Audio/Video, desc: "MicroHD - Musica"} + - {id: 103 , cat: Movies/HD, desc: "MicroHD - Peliculas"} + - {id: 54 , cat: XXX, desc: "XXX - xxx (Hetero)"} + - {id: 74 , cat: XXX, desc: "XXX - xxxy (Gay)"} + - {id: 76 , cat: XXX/Imageset, desc: "XXX - xxx (Imagenes)"} + - {id: 85 , cat: XXX, desc: "XXX - xxx Hentai"} + - {id: 55 , cat: Books/Ebook, desc: "Ebooks - LIBROS"} + - {id: 63 , cat: Books/Magazines, desc: "Ebooks - Publicacion Semanal"} + - {id: 64 , cat: Books/Magazines, desc: "Ebooks - Prensa Diaria"} + - {id: 79 , cat: Books/Other, desc: "Ebooks - Adultos Ebooks"} + - {id: 83 , cat: Books/Magazines, desc: "Ebooks - Publicacion Quincena"} + - {id: 88 , cat: Books/Magazines, desc: "Ebooks - Publicacion Mensual"} + - {id: 97 , cat: Books/Comics, desc: "Ebooks - Comic eBooks"} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-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: "3" + options: + "3": "created" + "5": "seeders" + "4": "size" + "2": "title" + - name: type + type: select + label: Order requested from site + default: "2" + options: + "2": "desc" + "1": "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: index.php?page=login + method: post + inputs: + uid: "{{ .Config.username }}" + pwd: "{{ .Config.password }}" + error: + - selector: td.lista span[style="color:#FF0000;"] + test: + path: index.php + + search: + path: index.php + inputs: + page: torrents + $raw: "&category={{ range .Categories }}{{.}};{{end}}" + active: 1 + search: "{{ .Keywords }}" + order: "{{ .Config.sort }}" + by: "{{ .Config.type }}" + + rows: + selector: "#Mcol > div > div.block-content > div > div > div > table > tbody > tr:nth-child(3) > td > table tr:not(:first-child)" + + fields: + category: + selector: td:nth-child(1) a + attribute: href + filters: + - name: querystring + args: category + title: + selector: td[valign="middle"] a + details: + selector: td[valign="middle"] a + attribute: href + banner: + optional: true + selector: td[valign="middle"] a + attribute: onmouseover + filters: + - name: regexp + args: "src=(.+?) " + size: + selector: td:nth-child(9) + seeders: + selector: td:nth-child(5) a + leechers: + selector: td:nth-child(6) a + grabs: + text: 0 + grabs: + selector: td:nth-child(7) a + optional: true + date: + selector: td:nth-child(4) + filters: + - name: dateparse + args: "02/01/2006" + download: + selector: a[href^="download.php"] + attribute: href + downloadvolumefactor: + case: + img[src$="gold.gif"]: 0.05 + img[src$="bronze.gif"]: 0.2 + img[src$="silver.gif"]: 0.4 + "*": 1 + uploadvolumefactor: + case: + img[src$="2x.gif"]: 2 + img[src$="3x.gif"]: 3 + img[src$="4x.gif"]: 4 + img[src$="5x.gif"]: 5 + img[src$="6x.gif"]: 6 + img[src$="7x.gif"]: 7 + img[src$="8x.gif"]: 8 + img[src$="9x.gif"]: 9 + "*": 1 +# xbtitFM 2.1.08