mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix beam ebooks not finding books if ratings are present
This commit is contained in:
parent
d7d8acb7cc
commit
d9895e8acc
@ -51,19 +51,19 @@ class BeamEBooksDEStore(BasicStoreConfig, StorePlugin):
|
|||||||
if counter <= 0:
|
if counter <= 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
id = ''.join(data.xpath('./tr/td/div[@class="stil2"]/a/@href')).strip()
|
id = ''.join(data.xpath('./tr/td[1]/a/@href')).strip()
|
||||||
if not id:
|
if not id:
|
||||||
continue
|
continue
|
||||||
id = id[7:]
|
id = id[7:]
|
||||||
cover_url = ''.join(data.xpath('./tr/td[1]/a/img/@src'))
|
cover_url = ''.join(data.xpath('./tr/td[1]/a/img/@src'))
|
||||||
if cover_url:
|
if cover_url:
|
||||||
cover_url = 'http://www.beam-ebooks.de' + cover_url
|
cover_url = 'http://www.beam-ebooks.de' + cover_url
|
||||||
title = ''.join(data.xpath('./tr/td/div[@class="stil2"]/a/b/text()'))
|
temp = ''.join(data.xpath('./tr/td[1]/a/img/@alt'))
|
||||||
author = ' '.join(data.xpath('./tr/td/div[@class="stil2"]/'
|
colon = temp.find(':')
|
||||||
'child::b/text()'
|
if not temp.startswith('eBook') or colon < 0:
|
||||||
'|'
|
continue
|
||||||
'./tr/td/div[@class="stil2"]/'
|
author = temp[5:colon]
|
||||||
'child::strong/text()'))
|
title = temp[colon+1:]
|
||||||
price = ''.join(data.xpath('./tr/td[3]/text()'))
|
price = ''.join(data.xpath('./tr/td[3]/text()'))
|
||||||
pdf = data.xpath(
|
pdf = data.xpath(
|
||||||
'boolean(./tr/td[3]/a/img[contains(@alt, "PDF")]/@alt)')
|
'boolean(./tr/td[3]/a/img[contains(@alt, "PDF")]/@alt)')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user