View Single Post
Old 07-01-2017, 08:23 AM   #2302
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
Hm, it's kind of hard to do since the file writing/updating for Calibre jobs seemingly works in a pretty complicated fashion -- workers get a target path that is supposed to be written to, but from that I don't think I can easily recreate the final path, so a custom backup path would have to be specified. However, even then, the file behind the outfilename that arrives in BaseStoryWriter.write_story() seems to be empty when the story is fully updated -- so one would have to change the code in all places where this method is called (3 places for the plugin).

Maybe Jimm can chime in with the best approach, I'm probably overlooking something obvious since I'm largely unfamiliar with the Calibre Plugin API.

Last edited by cryzed; 07-01-2017 at 08:31 AM.
cryzed is offline   Reply With Quote