https://bugzilla.wikimedia.org/show_bug.cgi?id=55223
--- Comment #5 from Kunal Mehta (Legoktm) <legoktm.wikipedia(a)gmail.com> ---
Its due to an issue with the timestamp that is used on their wiki. I am not
sure if this will work 100% but here is the patch:
Index: archivebot.py
===================================================================
\--- archivebot.py \(revision 9923\)
+++ archivebot.py \(working copy\)
@@ -233,6 +233,8 @@
if not TM:
TM = re.search\(r'\(\d\d?\)\\. \(\S+\) \(\d\d\d\d\) kello \W\*\(\d\d\).\(\d\d\)
\\\(.\*?\\\)', line\)
if not TM:
\+ TM = re.search\(r'\(\d\d\):\(\d\d\), \(\d\d?\)\\. \(\S+\)\\.?
\(\d\d\d\d\) \\\(.\*?\\\)', line\)
\+ if not TM:
\# 14:23, 12. Jan. 2009 \(UTC\)
pat = re.compile\(r'\(\d\d\):\(\d\d\), \(\d\d?\)\\. \(\S+\)\\.? \(\d\d\d\d\)
\\\(UTC\\\)'\)
TM = pat.search\(line\)
@@ -240,6 +242,8 @@
\# pywikibot.output\(TM\)
TIME = txt2timestamp\(TM.group\(0\),"%d. %b %Y kl. %H:%M \(%Z\)"\)
if not TIME:
\+ TIME = txt2timestamp\(TM.group\(0\),"%H:%M, %d. %b. %Y
\(CEST\)"\)
\+ if not TIME:
TIME = txt2timestamp\(TM.group\(0\), "%Y. %B %d., %H:%M \(%Z\)"\)
if not TIME:
TIME = txt2timestamp\(TM.group\(0\),"%d. %b %Y kl.%H:%M \(%Z\)"\)
@@ -263,9 +267,9 @@
TIME = txt2timestamp\(TM.group\(0\),"%H:%M, %d. %b. %Y \(%Z\)"\)
if TIME:
self.timestamp = max\(self.timestamp,time.mktime\(TIME\)\)
-\# pywikibot.output\(u'Time to be parsed: %s' % TM.group\(0\)\)
-\# pywikibot.output\(u'Parsed time: %s' % TIME\)
-\# pywikibot.output\(u'Newest timestamp in thread: %s' % TIME\)
\+ \# pywikibot.output\(u'Time to be parsed: %s' % TM.group\(0\)\)
\+ \# pywikibot.output\(u'Parsed time: %s' % TIME\)
\+ \# pywikibot.output\(u'Newest timestamp in thread: %s' % TIME\)
def size\(self\):
return len\(self.title\) + len\(self.content\) + 12
--
You are receiving this mail because:
You are the assignee for the bug.