From ebf518a51d161b014be2718860d128363819e8b7 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 24 Jun 2025 17:00:00 +1200 Subject: [PATCH] add magnetdownload a public site. resolves #16032 --- README.md | 1 + .../Definitions/magnetdownload.yml | 96 +++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 src/Jackett.Common/Definitions/magnetdownload.yml diff --git a/README.md b/README.md index e230a5c4c..dd48cb2f3 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ Prior versions of Jackett are no longer supported. * LinuxTracker * Mac Torrents Download * Magnet Cat + * MagnetDownload * MegaPeer * MejorTorrent * Mikan diff --git a/src/Jackett.Common/Definitions/magnetdownload.yml b/src/Jackett.Common/Definitions/magnetdownload.yml new file mode 100644 index 000000000..acc265f67 --- /dev/null +++ b/src/Jackett.Common/Definitions/magnetdownload.yml @@ -0,0 +1,96 @@ +--- +id: magnetdownload +name: MagnetDownload +description: "MagnetDownload is a Public DHT Crawler" +language: en-US +type: public +encoding: UTF-8 +links: + - https://www.magnetdownload.com/ + +caps: + categorymappings: + - {id: Other, cat: Other, desc: Other} + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + music-search: [q] + book-search: [q] + +settings: + - name: info_category_8000 + type: info_category_8000 + +download: + before: + path: api/json_info + inputs: + # /info/14152933 + hashes: "{{ re_replace .DownloadUri.AbsolutePath \"/info/\" \"\" }}" + infohash: + usebeforeresponse: true + hash: + selector: :root + filters: + - name: regexp + args: ([A-F|a-f|0-9]{40}) + title: + selector: :root + filters: + - name: regexp + args: name\". \"(.+?)\" + - name: validfilename + +search: + paths: + # https://www.magnetdownload.com/search/2025/ + - path: "search/{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}/" + + rows: + selector: tr > td.x-item +# filters: +# - name: andmatch + + fields: + category: + text: Other + title: + selector: a + attribute: title + details: + selector: a + attribute: href + download: + selector: a + attribute: href + date: + # 2 days, 5 hours + selector: span.ctime + filters: + - name: timeago + files: + selector: div.tail + filters: + - name: regexp + args: Files. (\d+) + size: + selector: div.tail + filters: + - name: regexp + args: size. (.+?) T + grabs: + selector: div.tail + filters: + - name: regexp + args: requests. (\d+) + seeders: + text: 1 + leechers: + text: 1 + downloadvolumefactor: + text: 0 + uploadvolumefactor: + text: 1 +# engine n/a