mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
91b5f5da50
commit
218da3467d
@ -131,7 +131,7 @@ class LibraryThingCovers(CoverDownload): # {{{
|
|||||||
raise err
|
raise err
|
||||||
else:
|
else:
|
||||||
if '/wiki/index.php/HelpThing:Verify' in src:
|
if '/wiki/index.php/HelpThing:Verify' in src:
|
||||||
raise Exception('LibraryThing is blocking your computer.')
|
raise Exception('LibraryThing is blocking calibre.')
|
||||||
s = BeautifulSoup(src)
|
s = BeautifulSoup(src)
|
||||||
url = s.find('td', attrs={'class':'left'})
|
url = s.find('td', attrs={'class':'left'})
|
||||||
if url is None:
|
if url is None:
|
||||||
|
@ -97,7 +97,7 @@ def get_social_metadata(title, authors, publisher, isbn, username=None,
|
|||||||
except:
|
except:
|
||||||
return mi
|
return mi
|
||||||
if '/wiki/index.php/HelpThing:Verify' in raw:
|
if '/wiki/index.php/HelpThing:Verify' in raw:
|
||||||
raise Exception('LibraryThing is blocking your computer.')
|
raise Exception('LibraryThing is blocking calibre.')
|
||||||
if not raw:
|
if not raw:
|
||||||
return mi
|
return mi
|
||||||
raw = raw.decode('utf-8', 'replace')
|
raw = raw.decode('utf-8', 'replace')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user