seblucas / cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
1.43k stars 229 forks source link

Synology: COPS stopped working with multiple databases #387

Closed drew1kun closed 6 years ago

drew1kun commented 6 years ago

I have two separate calibre libraries in subfolders: /volume1/books/library/calibre/metadata.db and /volume1/books/library/textbooks/metadata.db

Previously there was a functionality for choosing library in COPS web interface... I just had to set the path to calibre libraries as /volume1/books/library/ and then in web interface there was a dropdown menu for choosing the calibre library.

Seems like previously COPS recursively detected all the .db files in the /library/ path But now seems like the path must contain metadata.db file otherwise it returns the following error:

untitled

How can I get back that ability to choose between multiple calibre libraries in web interface?

horus68 commented 6 years ago

Double check your settings for multiple database in config_default.php https://github.com/seblucas/cops/blob/master/config_default.php#L17-L18

drew1kun commented 6 years ago

Thank you, that works.. but shouldn't it work the way I described above?

seblucas commented 6 years ago

As far as I remember, there never was a way to specify a single parent path and that COPS detect the libraries inside that directory.

If that worked before that was certainly a bug.

I'll close this as @horus68 provided a solution.