git://git.nikiroo.be
/
gofetch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug due to 'id'-handling change
[gofetch.git]
/
src
/
be
/
nikiroo
/
gofetch
/
support
/
BasicSupport.java
diff --git
a/src/be/nikiroo/gofetch/support/BasicSupport.java
b/src/be/nikiroo/gofetch/support/BasicSupport.java
index 80fe5d236d31c2379856a8245f09e80b4cfeab79..972852333fed4707ecd9ed2812e45c7f2ee00f8b 100644
(file)
--- a/
src/be/nikiroo/gofetch/support/BasicSupport.java
+++ b/
src/be/nikiroo/gofetch/support/BasicSupport.java
@@
-32,7
+32,7
@@
import be.nikiroo.utils.StringUtils;
*/
public abstract class BasicSupport {
/** The downloader to use for all websites. */
*/
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;
static private String preselector;
@@
-106,7
+106,11
@@
public abstract class BasicSupport {
continue;
}
continue;
}
- if (id.isEmpty()) {
+ if (!id.isEmpty()) {
+ while (id.length() < 10) {
+ id = "0" + id;
+ }
+ } else {
id = date.replace(":", "_").replace("+", "_");
}
id = date.replace(":", "_").replace("+", "_");
}