mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 17:23:38 +02:00
Content server: Do not show the original_* formats in the mobile interface
This commit is contained in:
parent
83aab34ec5
commit
353fbe117a
3 changed files with 4 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
.button a, .button:visited a {
|
||||
padding: 0.5em;
|
||||
font-size: 1.25em;
|
||||
font-size: larger;
|
||||
border: 1px solid black;
|
||||
text-color: black;
|
||||
text-decoration: none;
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ def __init__(self, db, opts, embedded=False, show_tracebacks=True,
|
|||
self.config['/'] = {
|
||||
'tools.digest_auth.on' : True,
|
||||
'tools.digest_auth.realm' : (
|
||||
'Password to access your calibre library. Username is '
|
||||
'Your calibre library. Username: '
|
||||
+ opts.username.strip()),
|
||||
'tools.digest_auth.users' : {opts.username.strip():opts.password.strip()},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,6 +117,8 @@ def build_index(books, num, search, sort, order, start, total, url_base, CKEYS,
|
|||
|
||||
data = TD()
|
||||
for fmt in book['formats'].split(','):
|
||||
if not fmt or fmt.lower().startswith('original_'):
|
||||
continue
|
||||
a = quote(ascii_filename(book['authors']))
|
||||
t = quote(ascii_filename(book['title']))
|
||||
s = SPAN(
|
||||
|
|
|
|||
Loading…
Reference in a new issue