finishing fixing bugs from last commit
This commit is contained in:
parent
73c35979c3
commit
b6ce427f06
|
@ -85,7 +85,7 @@ def openLibrary_lccn(LCCN):
|
|||
jsondata = urlopen("http://openlibrary.org/api/books?format=json&jscmd=data&bibkeys=lccn:"+lccn, timeout=3)
|
||||
except URLError:
|
||||
return {}
|
||||
openBook = load(jsondata)
|
||||
openBook = loads(jsondata.read().decode('utf-8'))
|
||||
if "lccn:"+lccn not in openBook:
|
||||
return {'lccn':lccn,'title':'Book not found'}
|
||||
openBook = openBook["lccn:"+lccn]
|
||||
|
|
|
@ -84,7 +84,6 @@ class browserWindow:
|
|||
entry = self.entries[self.topline+row]
|
||||
cursor = 2
|
||||
self.w.addnstr(row+3, 1, " "*self.mx,self.mx-2)
|
||||
sys.stderr.write(str(type(self.selected)))
|
||||
if self.selected[self.topline+row]:
|
||||
self.w.addstr(row+3, 1, "*")
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue