mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7379 (UnicodeEncodeError in Content server)
This commit is contained in:
parent
389c66a4eb
commit
d6d47e226f
@ -89,7 +89,7 @@ class Server(Command):
|
||||
t = telnetlib.Telnet('localhost', 4242)
|
||||
t.read_until("repl>")
|
||||
t.write('BrowserReload();')
|
||||
print t.read_until("repl>")
|
||||
t.read_until("repl>")
|
||||
t.close()
|
||||
except:
|
||||
print 'Failed to reload browser'
|
||||
|
@ -112,13 +112,12 @@ def get_metadata(br, asin, mi):
|
||||
|
||||
def main(args=sys.argv):
|
||||
# Test xisbn
|
||||
#print get_social_metadata('Learning Python', None, None, '8324616489')
|
||||
#print
|
||||
print get_social_metadata('Learning Python', None, None, '8324616489')
|
||||
print
|
||||
|
||||
# Test sophisticated comment formatting
|
||||
print get_social_metadata('Angels & Demons', None, None, '9781416580829')
|
||||
print
|
||||
return
|
||||
|
||||
# Random tests
|
||||
print get_social_metadata('Star Trek: Destiny: Mere Mortals', None, None, '9781416551720')
|
||||
|
@ -128,7 +128,7 @@ class ContentServer(object):
|
||||
if want_mobile:
|
||||
return self.mobile()
|
||||
|
||||
return self.browse_toplevel()
|
||||
return self.browse_catalog()
|
||||
|
||||
def old(self, **kwargs):
|
||||
return self.static('index.html').replace('{prefix}',
|
||||
|
Loading…
x
Reference in New Issue
Block a user