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 a59ae313fb1f1fda8979020d7e6315d81ba6592e..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("+", "_");
}
@@
-526,6
+530,9
@@
public abstract class BasicSupport {
case ERE_NUMERIQUE:
support = new EreNumerique();
break;
case ERE_NUMERIQUE:
support = new EreNumerique();
break;
+ case PHORONIX:
+ support = new Phoronix();
+ break;
}
if (support != null) {
}
if (support != null) {