From: David ‘Bombe’ Roden Date: Tue, 19 Feb 2013 19:15:06 +0000 (+0100) Subject: Return only the size (number and unit). X-Git-Tag: 0.1~20 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=992e01bce6d9818d4e94460a30137e2f39033649;p=rhynodge.git Return only the size (number and unit). --- 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]; } /**