Set upload warnings which can be ignored

We always upload existing images, so do not complain about this.
For testing purposes, also duplicates are normal
This commit is contained in:
2018-09-25 16:59:50 +02:00
parent f28fad2edb
commit f4296d8410

View File

@@ -331,9 +331,9 @@ class EuroExangeBot( pywikibot.bot.BaseBot ):
filename = job.image filename = job.image
filepath = os.path.join(self.wdir, job.image) filepath = os.path.join(self.wdir, job.image)
keepFilename=True #set to True to skip double-checking/editing destination filename keepFilename = True #set to True to skip double-checking/editing destination filename
verifyDescription=True #set to False to skip double-checking/editing description => change to bot-mode verifyDescription = True #set to False to skip double-checking/editing description => change to bot-mode
ignoreWarning=False #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked ignoreWarning = [ "exists", "duplicate", ] #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked
targetSite = pywikibot.Site() targetSite = pywikibot.Site()
bot = pywikibot.specialbots.UploadRobot( bot = pywikibot.specialbots.UploadRobot(