benchen71 / epub-metadata-editor

Edit the metadata of EPUB files
194 stars 11 forks source link

Replace tool not fully working as intended #64

Closed TheCrappyCompletionist closed 2 years ago

TheCrappyCompletionist commented 3 years ago

I tried replacing an entry in the batch edit mode with a blank string to clear it, but sometimes it put in random code, and sometimes it doesn't do anything. Sometimes it does clear the field, but most of the time it causes some random garbage to be filled in instead.

benchen71 commented 3 years ago

I'll have to check this out. I know that dealing with empty strings is far more complicated than non-empty strings, because you often have to delete the OPF tags as well, rather than just replace existing content.

TheCrappyCompletionist commented 3 years ago

next time I get some long string or anything that isn't blank I'll post it here.

benchen71 commented 3 years ago

What field were you trying to replace with an empty string?

TheCrappyCompletionist commented 3 years ago

I tend to replace multiple fields with empty strings - description, creator2, creator 2 file as, creator 1 file as, title file as etc.