From 7d98b9b4b2b62fc683e88a35faf37c608de5a13c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 17 Apr 2020 15:18:34 +1200 Subject: [PATCH] torrentview: set size for movies to 2GB else 512MB --- src/Jackett.Common/Definitions/torrentview.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/torrentview.yml b/src/Jackett.Common/Definitions/torrentview.yml index ad6da74b0..2c7168888 100644 --- a/src/Jackett.Common/Definitions/torrentview.yml +++ b/src/Jackett.Common/Definitions/torrentview.yml @@ -75,8 +75,14 @@ filters: - name: dateparse args: "2006-01-02T15:04:05+09:00" + cat: + selector: div.media-content > a[href^="./board.php"] + attribute: href + filters: + - name: querystring + args: bo_table size: - text: "512 MB" + text: "{{ if ne .Result.cat \"mov\" }}512 MB{{else}}2 GB{{end}}" seeders: text: 1 leechers: