mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
update empik plugin for website change
This commit is contained in:
parent
a8dba2f020
commit
26d20cdf6b
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
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'
|
||||
__copyright__ = '2011-2013, Tomasz Długosz <tomek3d@gmail.com>'
|
||||
|
|
@ -51,7 +51,7 @@ def search(self, query, max_results=10, timeout=60):
|
|||
if not id:
|
||||
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 = re.sub(r' \(ebook\)', '', title)
|
||||
author = ''.join(data.xpath('.//div[@class="productBox-450Author"]/a/text()'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue