Return only the size (number and unit).
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Feb 2013 19:15:06 +0000 (20:15 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Feb 2013 19:15:06 +0000 (20:15 +0100)
src/main/java/net/pterodactylus/rhynodge/filters/PirateBayFilter.java

index 45c33c1..a935261 100644 (file)
@@ -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];
        }
 
        /**