Page MenuHomePhabricator

imagetransfer.py uploads multi time a file
Open, Needs TriagePublic

Description

this file has 4 similar file history revisions on one edit it is happend based on en.wiki's file

Please add an option to imagetransfer.py to force it uploading the last revision not all of the file history revisions.

I run this code

import imagetransfer
import pywikibot
faSite=pywikibot.Site('fa',fam='wikipedia')
enSite=pywikibot.Site('en',fam='wikipedia')
imagepage = pywikibot.Page(enSite, u'File:'+imagename)
imagepage = iter([imagepage])
bot=imagetransfer.ImageTransferBot(imagepage, interwiki=False, targetSite=faSite,keep_name=True,ignore_warning=True)
bot.run()

Event Timeline

It is a bug here it uploaded the file 3 times but the english page has only one revision.

Yamaha5 renamed this task from have an option to force imagetransfer.py uploading only the last file history revision to imagetransfer.py upload many times a file.Jun 10 2016, 3:38 PM
Yamaha5 renamed this task from imagetransfer.py upload many times a file to imagetransfer.py uploads multi time a file.