diff --git a/src/calibre/gui2/dialogs/config.py b/src/calibre/gui2/dialogs/config.py index e096c0dcf3..73a5176857 100644 --- a/src/calibre/gui2/dialogs/config.py +++ b/src/calibre/gui2/dialogs/config.py @@ -113,7 +113,6 @@ class ConfigDialog(QDialog, Ui_Dialog): self.port.setValue(opts.port) self.username.setText(opts.username) self.password.setText(opts.password if opts.password else '') - self.hostname.setText(opts.hostname) self.auto_launch.setChecked(config['autolaunch_server']) def up_column(self): @@ -219,7 +218,6 @@ class ConfigDialog(QDialog, Ui_Dialog): sc = server_config() sc.set('username', unicode(self.username.text()).strip()) sc.set('password', unicode(self.password.text()).strip()) - sc.set('hostname', unicode(self.hostname.text()).strip()) sc.set('port', self.port.value()) of = str(self.output_format.currentText()) fmts = [] diff --git a/src/calibre/gui2/dialogs/config.ui b/src/calibre/gui2/dialogs/config.ui index c83df1e11a..cf0839db3c 100644 --- a/src/calibre/gui2/dialogs/config.ui +++ b/src/calibre/gui2/dialogs/config.ui @@ -692,22 +692,29 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + - If you plan to use the content server to access your ebook collection on an iphone using the stanza reader, you will need to enter either the fully qualified &hostname or the IP address for your computer below. You can then browse your books by adding the URL http://myhostname/stanza as a custom catalog in the stanza reader on your iphone. + If you want to use the content server to access your ebook collection on your iphone with Stanza, you will need to add the URL http://myhostname:8080/stanza as a new catalog in the stanza reader on your iphone. Here myhostname should be the fully qualified hostname or the IP address of this computer. true - - hostname - - - - diff --git a/src/calibre/library/__init__.py b/src/calibre/library/__init__.py index 88c022d805..297804875a 100644 --- a/src/calibre/library/__init__.py +++ b/src/calibre/library/__init__.py @@ -22,8 +22,6 @@ def server_config(defaults=None): help=_('The server timeout in seconds. Default is %default')) c.add_opt('thread_pool', ['--thread-pool'], default=30, help=_('The max number of worker threads to use. Default is %default')) - c.add_opt('hostname', ['--hostname'], default='localhost', - help=_('The hostname of the machine the server is running on. Used when generating the stanza feeds. Default is %default')) c.add_opt('password', ['--password'], default=None, help=_('Set a password to restrict access. By default access is unrestricted.')) c.add_opt('username', ['--username'], default='calibre', diff --git a/src/calibre/library/server.py b/src/calibre/library/server.py index eadbbddf2b..e494ddee2c 100644 --- a/src/calibre/library/server.py +++ b/src/calibre/library/server.py @@ -77,9 +77,9 @@ class LibraryServer(object): urn:calibre:${record[FM['id']]} ${authors} ${record[FM['timestamp']].strftime('%Y-%m-%dT%H:%M:%S+00:00')} - - - + + +
${Markup(extra)}${record[FM['comments']]}
@@ -259,7 +259,6 @@ class LibraryServer(object): books.append(self.STANZA_ENTRY.generate(authors=authors, record=record, FM=FIELD_MAP, port=self.opts.port, - server=self.opts.hostname, extra = ''.join(extra), ).render('xml').decode('utf8'))