mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'stores' of https://github.com/t3d/calibre
This commit is contained in:
commit
309136e88a
@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
||||||
store_version = 2 # Needed for dynamic plugin loading
|
store_version = 3 # Needed for dynamic plugin loading
|
||||||
|
|
||||||
__license__ = 'GPL 3'
|
__license__ = 'GPL 3'
|
||||||
__copyright__ = '2011-2013, Tomasz Długosz <tomek3d@gmail.com>'
|
__copyright__ = '2011-2013, Tomasz Długosz <tomek3d@gmail.com>'
|
||||||
@ -51,7 +51,7 @@ class EmpikStore(BasicStoreConfig, StorePlugin):
|
|||||||
if not id:
|
if not id:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cover_url = ''.join(data.xpath('.//div[@class="productBox-450Pic"]/a/img/@data-original'))
|
cover_url = ''.join(data.xpath('.//div[@class="productBox-450Pic"]/a/img/@src'))
|
||||||
title = ''.join(data.xpath('.//a[@class="productBox-450Title"]/text()'))
|
title = ''.join(data.xpath('.//a[@class="productBox-450Title"]/text()'))
|
||||||
title = re.sub(r' \(ebook\)', '', title)
|
title = re.sub(r' \(ebook\)', '', title)
|
||||||
author = ''.join(data.xpath('.//div[@class="productBox-450Author"]/a/text()'))
|
author = ''.join(data.xpath('.//div[@class="productBox-450Author"]/a/text()'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user