Sphinx could not be turned off since it defaulted to true and only stored true in the arg, I have turned it off by default.
Added --no-rst to disable the rst file export.
Fixed some arguments in the dump_html calls that were missing.
Use shutil to copy since cp does not exist on Windows.
Removing "illegal" characters from file-names, this very much depends on the OS though but I had a few exceptions pop up because of this on my machine.
Added try-catch to downloads, some failed in my environment due to invalid links.
Do not override attachments, this speeds things up a bit when debugging.
Fixed encoding issues, now writing everything as utf-8.
Couple of fixes and minor improvements:
--no-rst
to disable the rst file export.dump_html
calls that were missing.shutil
to copy sincecp
does not exist on Windows.