http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11735
Revision: 11735 Author: amir Date: 2013-07-10 03:43:29 +0000 (Wed, 10 Jul 2013) Log Message: ----------- important bug fix for checking images in commons, it was an out-dated setting
Modified Paths: -------------- trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py =================================================================== --- trunk/pywikipedia/checkimages.py 2013-07-09 16:26:36 UTC (rev 11734) +++ trunk/pywikipedia/checkimages.py 2013-07-10 03:43:29 UTC (rev 11735) @@ -961,7 +961,7 @@
pywikibot.output(u'%s is on commons!' % self.imageName) on_commons_text = self.image.getImagePageHtml() - if u"<div class='sharedUploadNotice'>" in on_commons_text: + if re.search(ur"<div class=(?:'|")sharedUploadNotice(?:'|")>",on_commons_text): pywikibot.output( u"But, the file doesn't exist on your project! Skip...") # We have to skip the check part for that image because