Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-25-2012, 10:33 PM   #1
Neck Beard
Member
Neck Beard began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2012
Device: none
Content server ?

I am trying to setup multiple content servers. I want them to serve by format for only one format per server. So an epub server, a mobi server, etc...

Lets say I have three books in my library.

book 1 formats: epub, html
book 2 formats: epub, mobi
book 3 formats: mobi

Lets also say I have 2 saved searches named epub and mobi:
1) formats:"=EPUB"
2) formats:"=MOBI"

Now I can setup a server and get book 3 just fine with the following restriction: search:"=mobi" and not search:"=epub"

My question is, how do I get book 3 and only the mobi format of book 2 ???

If I setup a server with search:"=mobi" as its restriction. I get books 2 & 3
but I also get the epub of book 2 which I don't want on my mobi server.
Neck Beard is offline   Reply With Quote
Old 12-25-2012, 10:43 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Create separate config directories, use the CALIBRE_CONFIG_DIRECTORY env var and set the output format to epub in one and mobi in the other.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-25-2012, 11:44 PM   #3
Neck Beard
Member
Neck Beard began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2012
Device: none
Okay, if my config directory is %USERPROFILE%\AppData\Roaming\calibre\
Quote:
Create separate config directories
Does this mean create them outside of that one?
%USERPROFILE%\AppData\Roaming\calibre-mobi\

Or create them inside?
%USERPROFILE%\AppData\Roaming\calibre\calibre-mobi\

Also after creating the new directories. Do I need to copy all the stuff inside %USERPROFILE%\AppData\Roaming\calibre\ into the new directories?

Quote:
use the CALIBRE_CONFIG_DIRECTORY env var and set the output format to epub in one and mobi in the other.
I don't understand what value to insert for the variable?
How do I set the output?
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	276
Size:	3.8 KB
ID:	98220  
Neck Beard is offline   Reply With Quote
Old 12-25-2012, 11:52 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Set the output format in calibre. The output format in calibre is what the content server uses to determine the format for its get button.
kovidgoyal is offline   Reply With Quote
Old 12-26-2012, 12:05 AM   #5
Neck Beard
Member
Neck Beard began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2012
Device: none
My output format is set in calibre.
Quote:
uses to determine the format for its get button
I don't want to change the get button function. Setting the get button function does not limit the formats available. If I go to details or http://127.0.0.1:8080/mobile there are still multiple formats. I want to restrict it to just one format per server.
Neck Beard is offline   Reply With Quote
Advert
Old 12-26-2012, 12:06 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot.
kovidgoyal is offline   Reply With Quote
Old 12-26-2012, 12:19 AM   #7
Neck Beard
Member
Neck Beard began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2012
Device: none
Quote:
You cannot.
I was afraid of this.

Is there an easy way to split libraries by format?

I would prefer just one library, but it seems like this would work. Have a master library with only epub. Then have a mobi library. Something like:
calibre-server.exe -p 8080 --with-library "%\epub Library"
calibre-server.exe -p 8081 --with-library "%\mobi Library"
Neck Beard is offline   Reply With Quote
Old 12-26-2012, 01:03 AM   #8
Neck Beard
Member
Neck Beard began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2012
Device: none
Quote:
Is there an easy way to split libraries by format?
Looks like there are only 2 options: Copy to library, or save to disk specific format.

I think I'll use penguinaka's method seems easier than copy and remove.
https://www.mobileread.com/forums/sho...d.php?t=138638

Thanks for your help Kovid. Calibre is awesome.
Neck Beard is offline   Reply With Quote
Reply

Tags
content server, format, saved search


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Content Server and Windows Home Server 2011 HughMcC Calibre 8 10-01-2014 07:26 AM
500 Internal Server Error accessing content server Calibre 0.8.8 DaddyO57 Calibre 1 07-20-2012 06:08 PM
help please content server allaboutroot.com Devices 3 12-03-2011 02:08 AM
Content server not serving all content. False_Chicken Calibre 0 10-19-2011 05:56 PM
Need help - content server Sydney's Mom Calibre 0 08-28-2010 04:07 PM


All times are GMT -4. The time now is 05:31 PM.


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