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
/
LWN.java
diff --git
a/src/be/nikiroo/gofetch/support/LWN.java
b/src/be/nikiroo/gofetch/support/LWN.java
index eac12e5c239c37aa921d2945333d1b7fbc4c4e9a..144fdc90514039656168bf41fef8b850a027d4fe 100644
(file)
--- a/
src/be/nikiroo/gofetch/support/LWN.java
+++ b/
src/be/nikiroo/gofetch/support/LWN.java
@@
-53,12
+53,7
@@
public class LWN extends BasicSupport {
@Override
protected String getArticleId(Document doc, Element article) {
@Override
protected String getArticleId(Document doc, Element article) {
- String id = getArticleIntUrl(doc, article).replaceAll("[^0-9]", "");
- while (id.length() < 10) {
- id = "0" + id;
- }
-
- return id;
+ return getArticleIntUrl(doc, article).replaceAll("[^0-9]", "");
}
@Override
}
@Override