mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix ebooks.com in get books
This commit is contained in:
commit
e6a0f0a050
@ -59,9 +59,10 @@ class EbookscomStore(BasicStoreConfig, StorePlugin):
|
||||
break
|
||||
|
||||
id = ''.join(data.xpath('.//a[1]/@href'))
|
||||
id = id.split('=')[-1]
|
||||
if not id:
|
||||
mo = re.search('\d+', id)
|
||||
if not mo:
|
||||
continue
|
||||
id = mo.group()
|
||||
|
||||
cover_url = ''.join(data.xpath('.//img[1]/@src'))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user