From 88202c1f7f983579da7c86aa1daa1d58d9312607 Mon Sep 17 00:00:00 2001 From: Jorman Date: Sun, 20 May 2018 21:08:22 +0200 Subject: [PATCH] Isohunt2: fix size parsing (#3127) Sometimes when parsing, the size of the rel was not enough to have Gb instead Mb or Kb to Mb or whatever So the size in row is for example 1.015.22 Mb (less than 1024) So in this case the parser return error I searched a way to replace this, I found a solution, hope that works in a log way --- src/Jackett.Common/Definitions/isohunt2.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/isohunt2.yml b/src/Jackett.Common/Definitions/isohunt2.yml index 11b0d7756..0f5407366 100644 --- a/src/Jackett.Common/Definitions/isohunt2.yml +++ b/src/Jackett.Common/Definitions/isohunt2.yml @@ -77,6 +77,9 @@ attribute: href size: selector: td.size-row + filters: + - name: re_replace + args: ["(\\d+).(?=\\d{3}(\\D|$))", "$1"] seeders: selector: td.sn date: @@ -96,4 +99,4 @@ downloadvolumefactor: text: "0" uploadvolumefactor: - text: "1" \ No newline at end of file + text: "1"