View Single Post
Old 09-21-2011, 01:56 PM   #6
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,123
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by chaley View Post
An instance of the content server can use only one restriction. However, you can have multiple instances of the content server on different ports. That would permit you to use different restrictions.
I'm already running multiple instances of the server on different ports. However, it would have been nice if I can use, say --restriction "kindle AND favorites" which will return all ebooks available in MOBI format and tagged as Favorite instead of having to creating a separate saved search entry for each one: kindle, favorites, kindle favorites.

Anyway, thanks for the help!

By the way, I noticed a bug with calibre-server when using the --url-prefix option. If there's only one item in the Authors, Languages, Publishers and Tags categories, clicking on the links would result in a 404 error due to the duplication of the url-prefix: e.g.

Quote:
404 Not Found

The path '/calibre/calibre/browse/matches/publisher/1' was not found.

Code:
Traceback (most recent call last):
  File "site-packages\cherrypy\_cprequest.py", line 606, in respond
  File "site-packages\cherrypy\_cperror.py", line 227, in __call__
NotFound: (404, "The path '/calibre/calibre/browse/matches/publisher/1' was not found.")
Manually typing the correct url in the address bar (e.g. http://localhost:8080/calibre/browse/matches/publisher/1) loads the correct page so I think this might be due to a javascript issue.
ilovejedd is offline   Reply With Quote