From 3d87fc8193d55b6379d71f64ccaca23c473435aa Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 9 Oct 2020 09:52:06 +1300 Subject: [PATCH] darmowetorrenty: build magnet prior method relied on hash from poster but not all torrents listed use the same poster url which caused many torrents to be dropped with an error. --- .../Definitions/darmowetorenty.yml | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/Jackett.Common/Definitions/darmowetorenty.yml b/src/Jackett.Common/Definitions/darmowetorenty.yml index 01781d155..ed819be40 100644 --- a/src/Jackett.Common/Definitions/darmowetorenty.yml +++ b/src/Jackett.Common/Definitions/darmowetorenty.yml @@ -92,6 +92,16 @@ login: path: index.php selector: a[href^="logout.php?check_hash="] +download: + selector: table[align="center"][width="100%"] tbody tr:nth-child(2) td:nth-child(2) + filters: + - name: toupper + - name: trim + - name: prepend + args: "magnet:?xt=urn:btih:" + - name: append + args: "&tr=udp://tracker.opentrackr.org:1337&tr=udp://tracker.coppersurfer.tk:6969&tr=udp://tracker.internetwarriors.net:1337&tr=udp://tracker.leechers-paradise.org:6969" + search: paths: # https://darmowe-torenty.pl/torrenty.php?search=&category=0 @@ -103,6 +113,8 @@ search: erotyka: 1 strona: 0 # does not support imdbid searching and does not display imdb links in results + error: + - selector: td.lista:contains("Nie ma torrentów") rows: selector: table.header > tbody > tr > td @@ -120,15 +132,9 @@ search: details: selector: a[href^="details.php?id="]:has(span) attribute: href - id: - selector: img[src^="./imgtorrent/"] - attribute: src - filters: - - name: regexp - args: "\\.\\/imgtorrent\\/tmp\\/(.+?)-darmowe-torenty.jpg" download: - # download link is obfuscated ( decodeURIComponent((atob($link.attr('data-href')))) ) so we create our own - text: "download.php?id={{ .Result.id }}&f={{ .Result.title }}.torrent" + selector: a[href^="details.php?id="]:has(span) + attribute: href banner: selector: img[src^="./imgtorrent/"] attribute: src