@eXistenZ
Did you notice the "kepub" option in config_local.php?
Code:
/*
* Rename .epub to .kepub.epub if downloaded from a Kobo eReader
* The ebook will then be recognized a Kepub so with chaptered paging, stat$
* You have to enable URL rewriting if you want to enable kepup.epub downlo$
* 1 : Yes (enable)
* 0 : No
*/
$config['cops_provide_kepub'] = "0";
Is this what you mean?