mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Get books: fix cover and title matching for Ebookpoint
This commit is contained in:
parent
cbd75236c6
commit
5722a4a3b0
@ -1,10 +1,10 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import absolute_import, division, print_function, unicode_literals
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||||
|
|
||||||
store_version = 8 # Needed for dynamic plugin loading
|
store_version = 9 # Needed for dynamic plugin loading
|
||||||
|
|
||||||
__license__ = 'GPL 3'
|
__license__ = 'GPL 3'
|
||||||
__copyright__ = '2011-2016, Tomasz Długosz <tomek3d@gmail.com>'
|
__copyright__ = '2011-2023, Tomasz Długosz <tomek3d@gmail.com>'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import re
|
import re
|
||||||
@ -75,8 +75,8 @@ class EbookpointStore(BasicStoreConfig, StorePlugin):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
formats = ', '.join(data.xpath('.//ul[@class="book-type book-type-points"]//span[@class="popup"]/span/text()'))
|
formats = ', '.join(data.xpath('.//ul[@class="book-type book-type-points"]//span[@class="popup"]/span/text()'))
|
||||||
cover_url = ''.join(data.xpath('.//p[@class="cover"]/img/@data-src'))
|
cover_url = ''.join(data.xpath('.//p[@class="cover "]/img/@data-src'))
|
||||||
title = ''.join(data.xpath('.//div[@class="book-info"]/h3/a/text()'))
|
title = ''.join(data.xpath('.//div[@class="book-info"]/h3/a[1]/text()'))
|
||||||
author = ''.join(data.xpath('.//p[@class="author"]//text()'))
|
author = ''.join(data.xpath('.//p[@class="author"]//text()'))
|
||||||
price = ''.join(data.xpath('.//p[@class="price price-incart"]/a/ins/text()|.//p[@class="price price-add"]/a/text()'))
|
price = ''.join(data.xpath('.//p[@class="price price-incart"]/a/ins/text()|.//p[@class="price price-add"]/a/text()'))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user