mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 13:43:39 +02:00
Merge branch 'master' of https://github.com/t3d/calibre
This commit is contained in:
commit
1064178e9b
2 changed files with 6 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
||||
store_version = 6 # Needed for dynamic plugin loading
|
||||
store_version = 7 # Needed for dynamic plugin loading
|
||||
|
||||
__license__ = 'GPL 3'
|
||||
__copyright__ = '2011-2014, Tomasz Długosz <tomek3d@gmail.com>'
|
||||
|
|
@ -66,7 +66,7 @@ def search(self, query, max_results=10, timeout=60):
|
|||
|
||||
cover_url = ''.join(data.xpath('.//div[@class="nw_katalog_lista_ksiazka_okladka nw_okladka"]/a[1]/img/@src'))
|
||||
title = ''.join(data.xpath('.//h2[@class="nw_katalog_lista_ksiazka_detale_tytul"]/a[1]/text()'))
|
||||
author = ', '.join(data.xpath('.//h3[@class="nw_katalog_lista_ksiazka_detale_autor"]/a/text()'))
|
||||
author = ', '.join(data.xpath('.//p[@class="nw_katalog_lista_ksiazka_detale_autor"]/a/text()'))
|
||||
price = ''.join(data.xpath('.//div[@class="nw_katalog_lista_ksiazka_opcjezakupu_cena"]/span/text()'))
|
||||
price = re.sub('\.', ',', price)
|
||||
formats = ', '.join(data.xpath('.//p[@class="nw_katalog_lista_ksiazka_detale_formaty"]/span/text()'))
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
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'
|
||||
__copyright__ = '2012-2013, Tomasz Długosz <tomek3d@gmail.com>'
|
||||
__copyright__ = '2012-2014, Tomasz Długosz <tomek3d@gmail.com>'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import urllib
|
||||
|
|
@ -55,9 +55,9 @@ def search(self, query, max_results=10, timeout=60):
|
|||
if not id:
|
||||
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()'))
|
||||
author = ', '.join(data.xpath('.//div[@class="mono author"]/a/text()'))
|
||||
author = ', '.join(data.xpath('.//div[@class="author"]/a/text()'))
|
||||
price = '0,00 zł'
|
||||
|
||||
counter -= 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue