mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 21:15:14 +02:00
...
This commit is contained in:
parent
91b5f5da50
commit
218da3467d
2 changed files with 2 additions and 2 deletions
|
|
@ -131,7 +131,7 @@ def get_cover_url(self, isbn, br, timeout=5.):
|
|||
raise err
|
||||
else:
|
||||
if '/wiki/index.php/HelpThing:Verify' in src:
|
||||
raise Exception('LibraryThing is blocking your computer.')
|
||||
raise Exception('LibraryThing is blocking calibre.')
|
||||
s = BeautifulSoup(src)
|
||||
url = s.find('td', attrs={'class':'left'})
|
||||
if url is None:
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ def get_social_metadata(title, authors, publisher, isbn, username=None,
|
|||
except:
|
||||
return mi
|
||||
if '/wiki/index.php/HelpThing:Verify' in raw:
|
||||
raise Exception('LibraryThing is blocking your computer.')
|
||||
raise Exception('LibraryThing is blocking calibre.')
|
||||
if not raw:
|
||||
return mi
|
||||
raw = raw.decode('utf-8', 'replace')
|
||||
|
|
|
|||
Loading…
Reference in a new issue