mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 06:15:52 +01:00
Advertise the calibre content server for Stanza via BonJour, needs testing
This commit is contained in:
parent
322d600786
commit
b0698d3fd5
1 changed files with 7 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
HTTP server for remote access to the calibre database.
|
||||
'''
|
||||
|
||||
import sys, textwrap, operator, os, re, logging
|
||||
import sys, textwrap, operator, os, re, logging, subprocess
|
||||
from itertools import repeat
|
||||
from logging.handlers import RotatingFileHandler
|
||||
from datetime import datetime
|
||||
|
|
@ -171,6 +171,12 @@ def start(self):
|
|||
try:
|
||||
cherrypy.engine.start()
|
||||
self.is_running = True
|
||||
try:
|
||||
subprocess.Popen(('dns-sd -R "calibre Books" '
|
||||
'_stanza._tcp local %d')%
|
||||
self.opts.port, shell=True)
|
||||
except:
|
||||
pass
|
||||
cherrypy.engine.block()
|
||||
except Exception, e:
|
||||
self.exception = e
|
||||
|
|
|
|||
Loading…
Reference in a new issue