numist/this-might-be-offensive — pull request #47 by corbosman (2012-02-16 01:12:55+00:00)
Title: possible way to handle checking on add.

One way to handle auto-check on add, necessary for ISK crashing if an ID exists. I wanted to avoid always deleting the original, and replacing it. By adding a parameter you can control that. But the code does always refuse to add if an image exists.

It returns false when an image exists, and by checking on false and the existence of $isk->error() you can distinguish between an actual error, or failure due to existing image.

Now it's possible to write an import variation that does always replace the image. Could even be an arg to the current script.