View Single Post
Old 02-01-2022, 03:25 PM   #1102
stefano.sb
Zealot
stefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheese
 
Posts: 103
Karma: 1000
Join Date: May 2013
Device: Kindle Paperwhite
Add three new Check Mobi controls

Quality Check_1_12_1.zipHi, I tried to add three new check mobi controls into Quality Check plug-in ver 1.12.0. Attached my modified version (1.12.1)
  • Check MOBI7 type -> it controls if the ebook is an MOBI7 file type (in Calibre corresponds to converting to MOBI using the "OLD" value in the MOBI Output-> Mobi file type option)
  • Check MOBI8 type -> it controls if the ebook is a MOBI8=KF8 file type (in Calibre corresponds to converting to MOBI using the "NEW" value in the MOBI Output-> Mobi file type option)
  • Check MOBI7+MOBI8 type -> it controls if the ebook is an MOBI7+MOBI8 file type (in Calibre corresponds to converting to MOBI using the "BOTH" value in the MOBI Output-> Mobi file type option)

I used some python code that I have taken from KindleUnpack - The Plugin Calibre plugin. All my changes start with a #SS-add START comment and finish with #SS-add FINISH. I have modified these python files:
  • __init__.py
  • config.py
  • check_mobi.py

I am not a good python programmer so I ask you to please test it and if you like, update or optimize the code as well

Stefano

Last edited by theducks; 02-02-2022 at 08:47 AM. Reason: removed PI (newer version in #1104)
stefano.sb is offline   Reply With Quote