Beta for calibre 6 and Qt6
While doing some other plugin testing with the calibre 6 beta, I saw this plugin was not loading. As I found that distracting from the errors I was looking for, I fixed it. This version appears to work with both calibre v5 and the latest beta of calibre v6.
And I have also fixed the problem with getting the original file date. I personally don't use that, but, I realised an error I was seeing in the logs was the trigger for this. This was related to the difference in how strings are handled in the different Python versions.
@Terisa: The Qt6 fix was a very lazy change for me. I simply replaced the common_utils.py in the plugin with the one from the Count Pages plugin. I did some cleanup of that earlier in the year to get it working with Qt6. It is very different to the version you had, but, I do not think there is anything missing.
|