Content server: Do not show the original_* formats in the mobile interface

This commit is contained in:
Kovid Goyal 2011-12-28 10:41:13 +05:30
parent 83aab34ec5
commit 353fbe117a
3 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -169,7 +169,7 @@ class LibraryServer(ContentServer, MobileServer, XMLServer, OPDSServer, Cache,
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()},
}

View File

@ -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(