Revision: 7108
Author: erwin85
Date: 2009-08-04 20:41:16 +0000 (Tue, 04 Aug 2009)
Log Message:
-----------
Fix getFileVersionHistory
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2009-08-04 08:20:10 UTC (rev 7107)
+++ trunk/pywikipedia/wikipedia.py 2009-08-04 20:41:16 UTC (rev 7108)
@@ -2868,7 +2868,7 @@
"""
result = []
- history = re.search('(?s)<table class="filehistory">.+?</table>',
self.getImagePageHtml())
+ history = re.search('(?s)<table class="wikitable
filehistory">.+?</table>', self.getImagePageHtml())
if history:
lineR = re.compile(r'<tr>(?:<td>.*?</td>){1,2}<td.*?><a
href=".+?">(?P<datetime>.+?)</a></td><td>.*?(?P<resolution>\d+\xd7\d+)
<span.*?>\((?P<filesize>.+?)\)</span></td><td><a href=".+?"(?: class="new"|)
title=".+?">(?P<username>.+?)</a>.*?</td><td>(?:.*?<span
class="comment">\((?P<comment>.*?)\)</span>)?</td></tr>')
if not lineR.search(history.group()):
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn