View Single Post
Old 01-03-2017, 07:42 AM   #1
riff
Junior Member
riff began at the beginning.
 
riff's Avatar
 
Posts: 6
Karma: 10
Join Date: Jan 2017
Device: none
ebook-files not recognized after conversion by calibr-server

I run a calibre-server on my Debian-7-NAS.
Database+ebooks are stored in /media/xxx/calibre. I use EPUB as prefered format, but want to provide MOBI as well. So i converted all EPUBs with command-line to MOBI, set permissions correct (same as the epub, 750), restarted server-instance, but the server does not offer the MOBI in Web-GUI.

Code:
#!/bin/bash
IFS=$'\n'
for file in `find /media/xxx/calibre/ -type f -name "*.epub"`
do
/opt/calibre/ebook-convert "$file" "${file%epub}mobi" && chown calibre:users "${file%epub}mobi"
done
Why do the MOBI show not up?

I think I have to add the file-format to DB with
Code:
calibredb add_format --dont-replace id ebook_file
but for this I need to get the ID of each Ebook-File which I want to add to the DB, so that I can use it in my Batch-Script.
Do I need to specify the location of DB separately?

Last edited by riff; 01-03-2017 at 07:59 AM.
riff is offline   Reply With Quote