mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 13:12:35 +02:00
This commit is contained in:
parent
fa52708579
commit
3c5dfb5c2b
1 changed files with 0 additions and 2 deletions
|
|
@ -48,9 +48,7 @@ def cover_from_isbn(isbn, timeout=5.):
|
|||
url = url.find('img')
|
||||
if url is None:
|
||||
raise LibraryThingError(_('Server error. Try again later.'))
|
||||
print url['src']
|
||||
url = re.sub(r'_SX\d+', '', url['src'])
|
||||
print url
|
||||
cover_data = browser.open(url).read()
|
||||
return cover_data, url.rpartition('.')[-1]
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Reference in a new issue