Revision: 5917 Author: filnik Date: 2008-09-24 15:26:18 +0000 (Wed, 24 Sep 2008)
Log Message: ----------- essage=Skip stub images on it.wikipedia
Modified Paths: -------------- trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py =================================================================== --- trunk/pywikipedia/checkimages.py 2008-09-24 13:05:44 UTC (rev 5916) +++ trunk/pywikipedia/checkimages.py 2008-09-24 15:26:18 UTC (rev 5917) @@ -498,6 +498,7 @@ # Adding the bot's nickname at the notification text if needed. botolist = wikipedia.translate(self.site, bot_list) project = wikipedia.getSite().family.name + self.project = project bot = config.usernames[project] botnick = bot[self.site.lang] self.botnick = botnick @@ -789,6 +790,9 @@ def checkImageDuplicated(self): """ Function to check the duplicated images. """ # {{Dupe|Image:Blanche_Montel.jpg}} + # Skip the stub images + if 'stub' in self.image.lower() and self.project == 'wikipedia' and self.site.lang == 'it': + return True # Skip the stub, ok dupText = wikipedia.translate(self.site, duplicatesText) dupRegex = wikipedia.translate(self.site, duplicatesRegex) dupTalkHead = wikipedia.translate(self.site, duplicate_user_talk_head)
pywikipedia-l@lists.wikimedia.org