From a84b1dce4deeaec46c18ed6dd001318b3b374830 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Tue, 5 Mar 2019 07:25:56 +1300 Subject: [PATCH] eztv: fetch magnets from details page. resolves #4813 --- src/Jackett.Common/Definitions/eztv.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Jackett.Common/Definitions/eztv.yml b/src/Jackett.Common/Definitions/eztv.yml index 1074a67b8..5a27d95ea 100644 --- a/src/Jackett.Common/Definitions/eztv.yml +++ b/src/Jackett.Common/Definitions/eztv.yml @@ -17,10 +17,14 @@ 1: TV modes: + search: [q] tv-search: [q, season, ep] settings: [] + download: + selector: a[href^="magnet:?"] + search: paths: - path: "{{if .Keywords}}search/{{ .Keywords}}{{else}}/{{end}}" @@ -28,7 +32,7 @@ - name: re_replace args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it) rows: - selector: "table.forum_header_border tr[name='hover'].forum_header_border:has(a.magnet)" # some torrents don't have any download links, skip them + selector: table.forum_header_border tr[name="hover"].forum_header_border filters: - name: andmatch fields: @@ -47,20 +51,22 @@ selector: td:nth-child(2) a attribute: href download: - selector: td:nth-child(3) a.magnet, td:nth-child(3) a + selector: td:nth-child(2) a attribute: href size: text: "500 MB" size: optional: true - selector: td:nth-child(4) + selector: td:nth-child(3) date: - selector: td:nth-child(5) + selector: td:nth-child(4) filters: - name: append args: " ago" seeders: - selector: td:nth-child(6) + selector: td:nth-child(5) + leechers: + text: 0 downloadvolumefactor: text: "0" uploadvolumefactor: