Closed sebers closed 10 years ago
The current version is 1.1.0, not 1.0.1. Sometimes Galileo Press updates existing books which leads to changed download archives and thus changed MD5 checksums. In these cases there will be an error message like yours, but not for the _javainsel book because version 1.1.0 already contains the latest checksum.
Furthermore, the behaviour that the program exits after the exception is intended because an MD5 checksum mismatch could also be a result of an interrupted download. So it is up to you to restart the unpacking and cleaning process on a book with an unexpected checksum. There might also be incompatible changes in the book which lead to problems in cleaning the HTML code. If you are sure that the result is okay and want to avoid the same error message next time you download the book, you can run the program with the --write-config
or -w
parameter so as to create a config.xml file in which you can edit the checksum manually and make it match what is on the Galileo Press download server. So you have several options.
Having said that, I think I should make the error message for MD5 check mismatch more user-friendly and add some explanatory text in the next version.
I am sorry, that was really stupid
No, actually that was ticket no. 4 asking a similar question, which shows to me that I need to do something in that area to make it more user-friendly. So I am the stupid one here, assuming that everyone else would understand the reason for the MD5 mismatch just like I do because I wrote the program for myself. I do not have much time to maintain it now, but I created an enhancement ticket anyway. Maybe next time I feel bored I can change it and release a new version.
I perfectly understood the error message and its reason.
However, I now know why I downloaded the wrong version. On your German description page [1] you provide a link to a download section [2] where version 1.0.1 is the latest one. Since 1.0.1 and 1.1.0 looks quite similar (if you do not look too closely), I ended up with an old version.
Another reason for opening the ticket was that I was amazed that the application's behavior depends on whether you downloaded the book in the first step or not. Since this could indicate a bug, I opened the ticket.
Anyhow, thanks for your effort. Your application was exactly what I was looking for!
[1] https://github.com/kriegaex/Galileo-Openbook-Cleaner/wiki/Galileo-Openbook-Cleaner [2] https://github.com/kriegaex/Galileo-Openbook-Cleaner/downloads
Thanks for the hint. I changed the wiki. Unfortunately GitHub no longer supports uploading new files, so the download section is obsolete. This is why nowadays I provide download links in the README on the main page.
I tried to process 'java_insel' using the precompiled version downloaded from your download section.
java -jar galileo_openbook_cleaner-1.0.1.jar java_insel
The initial fails (please see the stack trace below) due to an invalid MD5 check sum. However, when using the exact call again with the previously downloaded zip file in the specified download folder, the conversion works as expected.