~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/gui2/store/stores/cdp_plugin.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-02-27 07:48:06 UTC
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: package-import@ubuntu.com-20140227074806-64wdebb3ptosxhhx
Tags: upstream-1.25.0+dfsg
Import upstream version 1.25.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
 
3
3
from __future__ import (unicode_literals, division, absolute_import, print_function)
4
 
store_version = 2 # Needed for dynamic plugin loading
 
4
store_version = 3 # Needed for dynamic plugin loading
5
5
 
6
6
__license__ = 'GPL 3'
7
 
__copyright__ = '2013, Tomasz Długosz <tomek3d@gmail.com>'
 
7
__copyright__ = '2013-2014, Tomasz Długosz <tomek3d@gmail.com>'
8
8
__docformat__ = 'restructuredtext en'
9
9
 
10
10
import urllib
58
58
                    cover_url = ''.join(data.xpath('.//div[@class="product-image"]/a[1]/@data-background'))
59
59
                    cover_url = cover_url.split('\'')[1]
60
60
                    title = ''.join(data.xpath('.//div[@class="product-description"]/h2/a/text()'))
61
 
                    author = ''.join(data.xpath('.//div[@class="product-description"]//ul[@class="taxons"]/li[2]/a/text()'))
 
61
                    author = ''.join(data.xpath('.//div[@class="product-description"]//ul[@class="taxons"]/li[@class="author"]/a/text()'))
62
62
                    price = ''.join(data.xpath('.//span[@itemprop="price"]/text()'))
63
63
 
64
64
                    counter -= 1