From 67f50e88a30ea9326787d6ec87494b8754e654cd Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 19 Sep 2018 12:34:03 +1200 Subject: [PATCH] IdopeClone: replacement clone of Idope which is gone. Resolves #3832 --- README.md | 2 +- .../Definitions/{idope.yml => idopeclone.yml} | 43 ++++++++++--------- src/Jackett.Updater/Program.cs | 1 + 3 files changed, 24 insertions(+), 22 deletions(-) rename src/Jackett.Common/Definitions/{idope.yml => idopeclone.yml} (75%) diff --git a/README.md b/README.md index 08e16bfc7..3d7c8c70a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Frozen Layer * GkTorrent * Horrible Subs - * Idope + * IdopeClone * Il Corsaro Nero * Il Corsaro Blu * Isohunt2 diff --git a/src/Jackett.Common/Definitions/idope.yml b/src/Jackett.Common/Definitions/idopeclone.yml similarity index 75% rename from src/Jackett.Common/Definitions/idope.yml rename to src/Jackett.Common/Definitions/idopeclone.yml index 2c8b66ae5..d364aa77b 100644 --- a/src/Jackett.Common/Definitions/idope.yml +++ b/src/Jackett.Common/Definitions/idopeclone.yml @@ -1,20 +1,18 @@ --- - site: idope - name: Idope - description: "iDope is a Public torrent search engine presenting direct magnet links" + site: idopeclone + name: IdopeClone + description: "This Clone of iDope is a Public torrent search engine" language: en-us type: public encoding: UTF-8 links: - - https://idope.cc/ - legacylinks: - - https://idope.se/ + - https://idope.top/ caps: categorymappings: - {id: 0, cat: Other, desc: "Others"} - {id: 1, cat: Movies, desc: "Movies"} - - {id: 2, cat: Other, desc: "Video"} + - {id: 2, cat: Other, desc: "Videos"} - {id: 3, cat: TV, desc: "TV"} - {id: 4, cat: TV/Anime, desc: "Anime"} - {id: 5, cat: XXX, desc: "XXX"} @@ -39,33 +37,36 @@ search: paths: - # present trending results if there are no search parms supplied - # sort torrent-list by age in descending order - - path: "{{if .Keywords}}torrent-list/{{ .Keywords}}?&o=-3&c={{range .Categories }}{{.}}{{end}}{{else}}browse.html{{end}}" + - path: "{{if .Keywords}}search/{{ .Keywords}}/{{else}}recent-torrents/{{end}}" rows: selector: div[class="resultdiv"] + filters: + - name: andmatch fields: title: - selector: div[class="resultdivtop"] a div[class="resultdivtopname"] + selector: div[class="resultdivtop"] div[class="resultdivtopname"] + details: + selector: div[class="resultdivbotton"] div[class="magneticdiv"] a + attribute: href category: optional: true - selector: div[class="resultdivbotton"] div[class="resultdivbottoncategory"] + selector: div[class="resultdivbotton"] div[class="resultdivbottoncategory"] case: - ":contains(\"Others\")": 0 + ":contains(\"Other\")": 0 ":contains(\"Movies\")": 1 ":contains(\"Video\")": 2 ":contains(\"TV\")": 3 ":contains(\"Anime\")": 4 + ":contains(\"xxx\")": 5 ":contains(\"XXX\")": 5 + ":contains(\"Adult\")": 5 ":contains(\"Music\")": 6 ":contains(\"Games\")": 7 ":contains(\"Apps\")": 8 + ":contains(\"Software\")": 8 ":contains(\"Books\")": 9 - details: - selector: div[class="resultdivtop"] a - attribute: href download-itorrents: - selector: div[class="resultdivbotton"] div[id^="hideinfohash"] + selector: div[class="resultdivbotton"] div[class="resultseed"] div[class="resultdivbottonseed"] filters: - name: toupper - name: prepend @@ -80,7 +81,7 @@ - name: validfilename - name: urlencode magnet: - selector: div[class="resultdivbotton"] div[id^="hideinfohash"] + selector: div[class="resultdivbotton"] div[class="resultseed"] div[class="resultdivbottonseed"] filters: - name: prepend args: "magnet:?xt=urn:btih:" @@ -95,9 +96,9 @@ size: selector: div[class="resultdivbotton"] div[class="resultlength"] div[class="resultdivbottonlength"] seeders: - selector: div[class="resultdivbotton"] div[class="resultseed"] div[class="resultdivbottonseed"] - files: - selector: div[class="resultdivbotton"] div[class="resultfile"] div[class="resultdivbottonfiles"] + text: "999" + leechers: + text: "999" downloadvolumefactor: text: "0" uploadvolumefactor: diff --git a/src/Jackett.Updater/Program.cs b/src/Jackett.Updater/Program.cs index 6d7b9c4c2..86579c337 100644 --- a/src/Jackett.Updater/Program.cs +++ b/src/Jackett.Updater/Program.cs @@ -274,6 +274,7 @@ namespace Jackett.Updater "System.Web.Http.Tracing.dll", "Definitions/torrentkim.yml", "Definitions/horriblesubs.yml", + "Definitions/idope.yml", }; foreach (var oldFile in oldFiles)