From fe57b763526c62a76e43e79b005b7e0cd3c334cd Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Mon, 24 Aug 2020 06:17:33 +0100 Subject: [PATCH] Revert "pc-torrent: removed - down for 30 days. Resolves #7933" (#9385) --- README.md | 1 + src/Jackett.Common/Definitions/pctorrent.yml | 62 ++++++++++++++++++++ src/Jackett.Updater/Program.cs | 1 - 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 src/Jackett.Common/Definitions/pctorrent.yml diff --git a/README.md b/README.md index 80aead343..415903364 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * OneJAV * OxTorrent * ParnuXi + * PC-torrent * PiratBit * Pirateiro * Pornforall diff --git a/src/Jackett.Common/Definitions/pctorrent.yml b/src/Jackett.Common/Definitions/pctorrent.yml new file mode 100644 index 000000000..bd7141820 --- /dev/null +++ b/src/Jackett.Common/Definitions/pctorrent.yml @@ -0,0 +1,62 @@ +--- +id: pctorrent +name: PC-torrent +description: "PC-torrent is a RUSSIAN Public Torrent Tracker for Games" +language: ru-ru +type: public +encoding: windows-1251 +links: + - https://pc-torrent.pro/ +legacylinks: + - https://pc-torrent.org/ + +caps: + categorymappings: + - {id: 1, cat: PC/Games, desc: "Games"} + + modes: + search: [q] + +settings: [] + +download: + selector: a[href*="/engine/download.php?id="] + attribute: href + +search: + paths: + - path: "{{ if .Keywords }}?do=search&subaction=search&search_start=0&full_search=1&result_from=1&story={{ .Keywords }}{{else}}{{end}}" + + rows: + selector: div.dshort:has(div.d3-raz):not(:has(div.d3-raz:contains("Анонс!"))) # no size means indirect download via 3rd party site, not supported by cardigann. #8020 + filters: + - name: andmatch # issue #8019 + + fields: + category: + text: 1 + title: + selector: div.d3-title + details: + selector: a + attribute: href + download: + selector: a + attribute: href + banner: + selector: img + attribute: src + optional: true + date: + text: now + size: + selector: div.d3-raz + seeders: + text: 1 + leechers: + text: 1 + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# DataLife diff --git a/src/Jackett.Updater/Program.cs b/src/Jackett.Updater/Program.cs index a4403e194..3ebd0261a 100644 --- a/src/Jackett.Updater/Program.cs +++ b/src/Jackett.Updater/Program.cs @@ -351,7 +351,6 @@ namespace Jackett.Updater "Definitions/nyaa.yml", "Definitions/nyoo.yml", "Definitions/passionetorrent.yml", - "Definitions/pctorrent.yml", "Definitions/polishtracker.yml", "Definitions/qctorrent.yml", "Definitions/qxr.yml",