mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: Fix Google plugin.
This commit is contained in:
parent
5a17a1ca32
commit
7916569e04
@ -68,10 +68,10 @@ class GoogleBooksStore(BasicStoreConfig, StorePlugin):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
title = ''.join(data.xpath('.//h3/a//text()'))
|
title = ''.join(data.xpath('.//h3/a//text()'))
|
||||||
authors = data.xpath('.//span[@class="f"]//a//text()')
|
authors = data.xpath('.//div[@class="f"]//a//text()')
|
||||||
if authors and authors[-1].strip().lower() in ('preview', 'read'):
|
while authors and authors[-1].strip().lower() in ('preview', 'read', 'more editions'):
|
||||||
authors = authors[:-1]
|
authors = authors[:-1]
|
||||||
else:
|
if not authors:
|
||||||
continue
|
continue
|
||||||
author = ', '.join(authors)
|
author = ', '.join(authors)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user