Revision: 4661 Author: filnik Date: 2007-12-09 14:01:24 +0000 (Sun, 09 Dec 2007)
Log Message: ----------- Important bugfix! Images without comments weren't getted
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2007-12-09 14:01:24 UTC (rev 4660) +++ trunk/pywikipedia/wikipedia.py 2007-12-09 14:01:24 UTC (rev 4661) @@ -4223,7 +4223,7 @@ html = self.getUrl(url) image_namespace = self.image_namespace() regexp = re.compile( - r'(?P<new>class="new" |)title="%s:(?P<image>.*?).(?P<ext>\w\w\w|jpeg)">.*?</a>".*?<span class="comment">' % image_namespace, + r'(?P<new>class="new" |)title="%s:(?P<image>.*?).(?P<ext>\w\w\w|jpeg)">.*?</a>".*?(?:<span class="comment">.*?|)</li>' % image_namespace, re.UNICODE) pos = 0 seen = list()
pywikipedia-l@lists.wikimedia.org