mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
162a09a948
commit
4b965a8f42
@ -91,6 +91,8 @@ def get_social_metadata(title, authors, publisher, isbn, username=None,
|
||||
|
||||
raw = br.open_novisit('http://www.librarything.com/isbn/'
|
||||
+isbn).read()
|
||||
if not raw:
|
||||
return mi
|
||||
root = html.fromstring(raw)
|
||||
h1 = root.xpath('//div[@class="headsummary"]/h1')
|
||||
if h1 and not mi.title:
|
||||
|
Loading…
x
Reference in New Issue
Block a user