This commit is contained in:
Kovid Goyal 2017-04-26 08:58:36 +05:30
parent 3253731e9e
commit 27a5809178
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 4 additions and 4 deletions

View File

@ -169,7 +169,7 @@ class DigestAuth(object): # {{{
class AuthController(object): class AuthController(object):
''' '''
Implement Basic/Digest authentication for the content server. Android browsers Implement Basic/Digest authentication for the Content server. Android browsers
cannot handle HTTP AUTH when downloading files, as the download is handed cannot handle HTTP AUTH when downloading files, as the download is handed
off to a separate process. So we use a cookie based authentication scheme off to a separate process. So we use a cookie based authentication scheme
for some endpoints (/get) to allow downloads to work on android. Apparently, for some endpoints (/get) to allow downloads to work on android. Apparently,

View File

@ -163,7 +163,7 @@ def book_fmt(ctx, rd, library_id, db, book_id, fmt):
if update_metadata: if update_metadata:
mi = db.get_metadata(book_id) mi = db.get_metadata(book_id)
mtime = max(mtime, mi.last_modified) mtime = max(mtime, mi.last_modified)
# Get any plugboards for the content server # Get any plugboards for the Content server
plugboards = db.pref('plugboards') plugboards = db.pref('plugboards')
if plugboards: if plugboards:
cpb = find_plugboard(plugboard_content_server_value, fmt, plugboards) cpb = find_plugboard(plugboard_content_server_value, fmt, plugboards)

View File

@ -146,12 +146,12 @@ raw_options = (
_('Ignored user-defined metadata fields'), _('Ignored user-defined metadata fields'),
'ignored_fields', None, 'ignored_fields', None,
_('Comma separated list of user-defined metadata fields that will not be displayed' _('Comma separated list of user-defined metadata fields that will not be displayed'
' by the content server in the /opds and /mobile views.'), ' by the Content server in the /opds and /mobile views.'),
_('Restrict displayed user-defined fields'), _('Restrict displayed user-defined fields'),
'displayed_fields', None, 'displayed_fields', None,
_('Comma separated list of user-defined metadata fields that will be displayed' _('Comma separated list of user-defined metadata fields that will be displayed'
' by the content server in the /opds and /mobile views. If you specify this' ' by the Content server in the /opds and /mobile views. If you specify this'
' option, any fields not in this list will not be displayed.'), ' option, any fields not in this list will not be displayed.'),