mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 06:36:15 +01:00
update author detection in wolnelektury store
This commit is contained in:
parent
596302d3ed
commit
28c725e470
1 changed files with 4 additions and 4 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
# -*- 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 = 1 # Needed for dynamic plugin loading
|
store_version = 2 # Needed for dynamic plugin loading
|
||||||
|
|
||||||
__license__ = 'GPL 3'
|
__license__ = 'GPL 3'
|
||||||
__copyright__ = '2012-2013, Tomasz Długosz <tomek3d@gmail.com>'
|
__copyright__ = '2012-2014, Tomasz Długosz <tomek3d@gmail.com>'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import urllib
|
import urllib
|
||||||
|
|
@ -55,9 +55,9 @@ def search(self, query, max_results=10, timeout=60):
|
||||||
if not id:
|
if not id:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cover_url = ''.join(data.xpath('.//a[1]/img/@src'))
|
cover_url = ''.join(data.xpath('.//div[@class="cover-area"]//img/@src'))
|
||||||
title = ''.join(data.xpath('.//div[@class="title"]/a[1]/text()'))
|
title = ''.join(data.xpath('.//div[@class="title"]/a[1]/text()'))
|
||||||
author = ', '.join(data.xpath('.//div[@class="mono author"]/a/text()'))
|
author = ', '.join(data.xpath('.//div[@class="author"]/a/text()'))
|
||||||
price = '0,00 zł'
|
price = '0,00 zł'
|
||||||
|
|
||||||
counter -= 1
|
counter -= 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue