Add tests (WIP)
[gofetch.git] / src / be / nikiroo / gofetch / support / Phoronix.java
index 5338cd639ff2ebe2435834336af1232320827ebf..74096ad67afcd28fd478e62fe4a6e1edc132e596 100644 (file)
@@ -45,9 +45,6 @@ class Phoronix extends BasicSupport {
                                        id = id.substring(pos + 1);
                                }
 
-                               while (id.length() < 10) {
-                                       id = "0" + id;
-                               }
                                return id;
                        }
                }
@@ -149,7 +146,7 @@ class Phoronix extends BasicSupport {
                                Element a = linkToComments.getElementsByTag("a").first();
                                if (a != null) {
                                        String url = a.absUrl("href");
-                                       InputStream in = downloader.open(new URL(url));
+                                       InputStream in = open(new URL(url));
                                        try {
                                                doc = DataUtil.load(in, "UTF-8", url.toString());
                                                return doc.getElementsByClass("b-post");