View Single Post
Old 07-04-2022, 04:56 AM   #385
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
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.
Attached Files
File Type: zip GetFileName-beta.zip (27.9 KB, 177 views)
davidfor is offline   Reply With Quote