Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-10-2015, 10:25 PM   #1
asok
Junior Member
asok began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: nook
calibre-server, expose all libraries

I maintain multiple calibre libraries (fiction, non-fiction, computer science, etc.). Is there a way to expose these libraries as a subdirectory of the URL?

e.g.,

127.0.0.1:8080/fiction
127.0.0.1:8080/non-fiction

etc.

If not, is there any desire to provide for this type of functionality? I'm happy to contribute as a developer. I would need to get details of the file system structure of the libraries.
asok is offline   Reply With Quote
Old 09-10-2015, 10:30 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by asok View Post
I maintain multiple calibre libraries (fiction, non-fiction, computer science, etc.). Is there a way to expose these libraries as a subdirectory of the URL?

e.g.,

127.0.0.1:8080/fiction
127.0.0.1:8080/non-fiction

etc.

If not, is there any desire to provide for this type of functionality? I'm happy to contribute as a developer. I would need to get details of the file system structure of the libraries.
You need to:
a) Use a virtual Libraries instead of multiple
b) Start multiple content SERVERS, each with their own port
eg "C:\Program Files\Calibre2\calibre-server.exe" --port 8083 --with-library C:\Users\<me>\MainLib
"C:\Program Files\Calibre2\calibre-server.exe" --port 8082 --with-library C:\Users\<me>\Fiction
theducks is offline   Reply With Quote
Advert
Old 09-10-2015, 11:58 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@asok - I 'made' a PTFB script to selectively start multiple servers on different ports took about 5 minutes to 'make'.
BetterRed is offline   Reply With Quote
Old 09-11-2015, 02:57 AM   #4
asok
Junior Member
asok began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: nook
thanks, guys. I get the general gist of how you made it happen. cheers!
asok is offline   Reply With Quote
Old 09-11-2015, 03:06 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,445
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You can use a single port, or no port, to expose all your libraries by using a reverse proxy with different paths.
chaley is offline   Reply With Quote
Advert
Old 09-11-2015, 03:29 AM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I use the following systemd service on linux:

Code:
[eschwartz@arch ~]$ cat ~/.config/systemd/user/calibre-server@.service
[Unit]
Description=Main calibre server
After=network.target

[Service]
EnvironmentFile=/%h/.config/calibre/servers/%i.conf
ExecStart=/usr/bin/calibre-server \
    --port="${port}" \
    --with-library "${path}" \
    --restriction "${restriction}" \
    --user "${user}" \
    --pass "${pass}"

[Install]
WantedBy=default.target
And in my calibre configuration folder I created a folder called servers, with ${library}.conf files:
Code:
[eschwartz@arch ~]$ cat ~/.config/calibre/servers/template.conf
path="/home/eschwartz/Calibre_Libraries/My_Library_Name"
port="8080"
restriction="some_restriction"
user="username"
pass="password"
Easy template for adding new libraries, and starts at login.


The Content Server is currently in the midst of a major rewrite, I believe one of the features will be starting multiple libraries in the same invocation but not sure of the exact details.
Server read/write mode and multiple libraries has long been suggested as a feature of the eventual rewrite, among other things.
eschwartz is offline   Reply With Quote
Old 09-11-2015, 03:39 AM   #7
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Use COPS: https://www.mobileread.com/forums/sho...d.php?t=170903

Do not be fooled by the version number, it's at version 1 (almost) http://blog.slucas.fr/en/oss/calibre-opds-php-server
mariosipad is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BicBucStriim 1.1 released, HTML and OPDS server for Calibre libraries textmulch Related Tools 28 01-07-2015 09:00 PM
Multiple libraries on Calibre server? omf Library Management 4 02-15-2014 05:59 PM
BicBucStriim 1.0, HTML and OPDS server for Calibre libraries textmulch Related Tools 7 04-20-2013 10:46 PM
BicBucStriim 0.9, HTML and OPDS server for Calibre libraries textmulch Related Tools 13 11-16-2012 05:10 AM
BicBucStriim, HTML server for Calibre libraries textmulch Related Tools 3 06-01-2012 11:51 AM


All times are GMT -4. The time now is 12:07 PM.


MobileRead.com is a privately owned, operated and funded community.