View Single Post
Old 02-15-2023, 12:50 PM   #8
siebert
Developer
siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.
 
Posts: 155
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 9 WiFi / Google Pixel 6a (Android)
It's not about converting one format to itself, it's about converting between formats.

I usually have my ebooks stored in Calibre as epub and mobi. Most of my ebooks I got as original epub and converted them to mobi, but some I got as original mobi and converted these to epub, and some other ebooks were originally available both as epub and mobi, so no conversion was needed at all in this case.

I have no problems to delete and convert again formats which were created in the past by converting, but I don't want to lose my original formats.

These automatically created and deleted tags allow me to easily distinguish the original files from the converted ones.

I already use this scheme successfully for years, but it's rather annoying to maintain my necessary patches to Calibre every time I upgrade Calibre and as a result I do upgrades very seldom.

I would like to achieve the same result via a plugin, so I can use an unmodified Calibre and update more easily/more often.

From my perspective, all I would need are two small additions to the FileTypePlugin interface: an additional variable which lets postimport() be executed also after a conversion and a new method (e.g. postdelete()) with the same signature as postimport(), which is executed when a format is deleted.
siebert is offline   Reply With Quote