Fix bug due to 'id'-handling change
[gofetch.git] / src / be / nikiroo / gofetch / support / BasicSupport.java
index a59ae313fb1f1fda8979020d7e6315d81ba6592e..972852333fed4707ecd9ed2812e45c7f2ee00f8b 100644 (file)
@@ -32,7 +32,7 @@ import be.nikiroo.utils.StringUtils;
  */
 public abstract class BasicSupport {
        /** The downloader to use for all websites. */
-       protected static Downloader downloader = new Downloader("gofetcher");
+       static protected Downloader downloader = new Downloader("gofetcher");
 
        static private String preselector;
 
@@ -106,7 +106,11 @@ public abstract class BasicSupport {
                                        continue;
                                }
 
-                               if (id.isEmpty()) {
+                               if (!id.isEmpty()) {
+                                       while (id.length() < 10) {
+                                               id = "0" + id;
+                                       }
+                               } else {
                                        id = date.replace(":", "_").replace("+", "_");
                                }
 
@@ -526,6 +530,9 @@ public abstract class BasicSupport {
                        case ERE_NUMERIQUE:
                                support = new EreNumerique();
                                break;
+                       case PHORONIX:
+                               support = new Phoronix();
+                               break;
                        }
 
                        if (support != null) {