Script re-uploads already uploaded screenshots when image host fails
Opened this issue · 0 comments
Hello,
I'm frequently having an issue while uploading screenshots. My default image host is ptpimg. Very often the script will successfully upload the first couple of screenshots to ptpimg and then give an error that the image host has failed. When it attempts to upload the remaining screenshots to the next configured image host, instead of continuing from where it was left (ie with screenshot 3 of 6, 4 of 6, etc), it starts re-uploading the screenshots from the beginning (ie with screenshot 1 of 6). So I end up with having duplicate screenshots in my meta.json file.
I've tried using other image hosts as default but got the same issue so don't think it's related to ptpimg.
The confusing thing is that sometimes when there is an image host failure the script does 'remember' which screenshots are left to be uploaded to the next image host -which is the expected behaviour.
Any ideas/suggestions on how to solve the above issue would be very welcomed. Many thanks.