View Single Post
Old 10-08-2019, 08:35 PM   #46
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
Quote:
Originally Posted by MGlitch View Post
erm, yes, as I said it's the Kobo end that has the issue, Dropbox is happy to have and send the file.

I appreciate that Calibre has to append .kepub. That's all well and good.

The issue now is that apparently everyone elses Calibre outputs .kepub.epub while mine is outputting just .kepub

And for the life of me I can not figure out why since, AFAIK, I am using the same tools they are.
Sorry, you are misunderstanding things. I don't think anyone has said they are getting files named with ".kepub.epub" except when they use one of the drivers to send kepubs to the device. Everything you have described so fare is working exactly as designed.

Firstly, the KoboTouchExtended driver can do the transformation from epub to kepub on the fly when sending the book to the device. And knows to rename the file appropriately.

The KoboTouch driver knows that it can send kepubs that are in the calibre library to the device. And it knows to rename the file appropriately.

If you convert to kepub in the library, or, otherwise add a kepub, calibre stores the book with the extension "kepub". All actions that calibre does with a kepub that do not include use of the above drivers, have no knowledge that these files should be treated differently to other books. Actions such as save-to-disk will update the metadata and then copy the file to the destination using the templates and metadata plugboards. Nothing in these tells calibre to rename the file to ".kepub.epub".

And whether that rename should happen depends on the purpose. If the purpose is to export the book to import to another calibre library, you don't want it to happen. If the purpose is to use it in some other way, then you need to decide what the name should be.

If you want to send a kepub to Dropbox so that the device will download it, you need to rename it to include ".kepub.epub". Unfortunately, I can't think of a good way to do this in calibre. The template used for save-to-disk will always add what calibre thinks is the extension for the books format to the end of the file name. To do this would need changes to calibre, or a plugin written to do it. Maybe someone can write a "Send kepub to Kobo Dropbox" plugin.
davidfor is offline   Reply With Quote