mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/wold5/calibre
This commit is contained in:
commit
95745a3ca5
@ -52,7 +52,10 @@ def search(query, max_results=10, timeout=60, write_raw_to=None):
|
||||
a = next(CSSSelect('a.link', li))
|
||||
s.detail_item = absurl(a.get('href'))
|
||||
s.title = etree.tostring(next(CSSSelect('span.title', li)), method='text', encoding='unicode').strip()
|
||||
try:
|
||||
s.author = etree.tostring(next(CSSSelect('span.subtitle', li)), method='text', encoding='unicode').strip()
|
||||
except StopIteration:
|
||||
s.author = ""
|
||||
for img in CSSSelect('img.cover-thumb', li):
|
||||
s.cover_url = absurl(img.get('src'))
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user