mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 21:13:42 +02:00
Store: Fix Manybooks plugin.
This commit is contained in:
parent
f9c1c6e7f0
commit
9ab85b0710
1 changed files with 3 additions and 1 deletions
|
|
@ -49,7 +49,9 @@ def search(self, query, max_results=10, timeout=60):
|
|||
counter = max_results
|
||||
br = browser()
|
||||
with closing(br.open(url, timeout=timeout)) as f:
|
||||
doc = etree.fromstring(f.read())
|
||||
raw_data = f.read()
|
||||
raw_data = raw_data.decode('utf-8', 'replace')
|
||||
doc = etree.fromstring(raw_data)
|
||||
for data in doc.xpath('//*[local-name() = "entry"]'):
|
||||
if counter <= 0:
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue