mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
95075623d6
commit
5ef9def403
@ -123,6 +123,9 @@ class LibraryServer(TestServer):
|
||||
from calibre.srv.loop import ServerLoop
|
||||
from calibre.srv.handler import Handler
|
||||
from calibre.srv.http_response import create_http_handler
|
||||
kwargs['shutdown_timeout'] = kwargs.get('shutdown_timeout', 0.1)
|
||||
kwargs['listen_on'] = kwargs.get('listen_on', 'localhost')
|
||||
kwargs['port'] = kwargs.get('port', 0)
|
||||
opts = Options(**kwargs)
|
||||
self.libraries = libraries or (library_path,)
|
||||
self.handler = Handler(self.libraries, opts, testing=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user