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:
@@ -331,9 +331,9 @@ class EuroExangeBot( pywikibot.bot.BaseBot ):
|
||||
|
||||
filename = job.image
|
||||
filepath = os.path.join(self.wdir, job.image)
|
||||
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
|
||||
ignoreWarning=False #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked
|
||||
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
|
||||
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()
|
||||
|
||||
bot = pywikibot.specialbots.UploadRobot(
|
||||
|
||||
Reference in New Issue
Block a user