From 138c622c5d4612a431a43d3af676f0fd7feb7454 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 13 Oct 2021 18:20:43 +1300 Subject: [PATCH] movietorrent: use infohash to prevent hardcoded tracker list also clean up title --- .../Definitions/movietorrent.yml | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/movietorrent.yml b/src/Jackett.Common/Definitions/movietorrent.yml index fdc539ea2..e86df264d 100644 --- a/src/Jackett.Common/Definitions/movietorrent.yml +++ b/src/Jackett.Common/Definitions/movietorrent.yml @@ -54,12 +54,26 @@ caps: settings: [] download: - selectors: - - selector: a[href^="magnet:?xt="] + infohash: + hash: + selector: a[href^="magnet:?xt="] attribute: href filters: - - name: append - args: "&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce&tr=udp%3A%2F%2Fexplodie.org%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.demonii.si%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.pirateparty.gr%3A6969%2Fannounce&tr=udp%3A%2F%2Fipv4.tracker.harry.lu%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.cyberia.is%3A6969%2Fannounce&tr=udp%3A%2F%2F9.rarbg.to%3A2710%2Fannounce&tr=udp%3A%2F%2Fdenis.stalker.upeer.me%3A6969%2Fannounce" + - name: regexp + args: ([A-F|a-f|0-9]{40}) + title: + selector: h2 + filters: + - name: replace + args: ["Full Movie ", ""] + - name: replace + args: ["Torrent Magnet ", ""] + - name: replace + args: ["Download", ""] + - name: replace + args: ["…", ""] + - name: trim + - name: validfilename search: paths: @@ -87,7 +101,9 @@ search: - name: replace args: ["Torrent Magnet ", ""] - name: replace - args: ["Download ", ""] + args: ["Download", ""] + - name: replace + args: ["…", ""] details: selector: h2 > a attribute: href @@ -110,4 +126,4 @@ search: text: 0 uploadvolumefactor: text: 1 -# engine wordpress +# engine wordpress 5.8