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
|
||||
|
||||
title = ''.join(data.xpath('.//h3/a//text()'))
|
||||
authors = data.xpath('.//span[@class="f"]//a//text()')
|
||||
if authors and authors[-1].strip().lower() in ('preview', 'read'):
|
||||
authors = data.xpath('.//div[@class="f"]//a//text()')
|
||||
while authors and authors[-1].strip().lower() in ('preview', 'read', 'more editions'):
|
||||
authors = authors[:-1]
|
||||
else:
|
||||
if not authors:
|
||||
continue
|
||||
author = ', '.join(authors)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user