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.
Why do the MOBI show not up?
I think I have to add the file-format to DB with
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?
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
I think I have to add the file-format to DB with
Code:
calibredb add_format --dont-replace id ebook_file
Do I need to specify the location of DB separately?