Fix bug due to 'id'-handling change
[gofetch.git] / src / be / nikiroo / gofetch / support / BasicSupport.java
index 80fe5d236d31c2379856a8245f09e80b4cfeab79..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("+", "_");
                                }