mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-05 21:05:17 +01:00
...
This commit is contained in:
parent
59907f91c7
commit
8a70e2dc3a
1 changed files with 1 additions and 2 deletions
|
|
@ -18,7 +18,6 @@ def __init__(self):
|
|||
self._data = []
|
||||
self._map = {}
|
||||
|
||||
self.br = browser()
|
||||
self.isbn_pat = re.compile(r'[^0-9X]', re.IGNORECASE)
|
||||
|
||||
def purify(self, isbn):
|
||||
|
|
@ -26,7 +25,7 @@ def purify(self, isbn):
|
|||
|
||||
def fetch_data(self, isbn):
|
||||
url = self.QUERY%isbn
|
||||
data = self.br.open_novisit(url).read()
|
||||
data = browser().open_novisit(url).read()
|
||||
data = json.loads(data)
|
||||
if data.get('stat', None) != 'ok':
|
||||
return []
|
||||
|
|
|
|||
Loading…
Reference in a new issue