From 992e01bce6d9818d4e94460a30137e2f39033649 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 19 Feb 2013 20:15:06 +0100 Subject: [PATCH] Return only the size (number and unit). --- src/main/java/net/pterodactylus/rhynodge/filters/PirateBayFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/rhynodge/filters/PirateBayFilter.java b/src/main/java/net/pterodactylus/rhynodge/filters/PirateBayFilter.java index 45c33c1..a935261 100644 --- a/src/main/java/net/pterodactylus/rhynodge/filters/PirateBayFilter.java +++ b/src/main/java/net/pterodactylus/rhynodge/filters/PirateBayFilter.java @@ -52,7 +52,7 @@ public class PirateBayFilter extends TorrentSiteFilter { */ @Override protected String extractSize(Element dataRow) { - return dataRow.select(".detDesc").text().split(Pattern.quote(","))[1].trim(); + return dataRow.select(".detDesc").text().split(Pattern.quote(","))[1].split(Pattern.quote("Size"))[1]; } /** -- 2.7.4