Ahh, misuse of str.rstrip(). Since names that aren't UUIDs are purely for convenience (Kobo drops KePubs as $UUID.kepub.epub) this isn't all that important. The biggest problem is name collisions if a name ends with a combination of the characters '.epub', which isn't too likely I don't think. Will get to this when I have a few minutes, looks like using str.replace() instead should fix this. Might even announce a new major version that does it more like Kobo and forces using UUID names.
Ahh, misuse of str.rstrip(). Since names that aren't UUIDs are purely for convenience (Kobo drops KePubs as $UUID.kepub.epub) this isn't all that important. The biggest problem is name collisions if a name ends with a combination of the characters '.epub', which isn't too likely I don't think. Will get to this when I have a few minutes, looks like using str.replace() instead should fix this. Might even announce a new major version that does it more like Kobo and forces using UUID names.