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

« back to all changes in this revision

Viewing changes to src/calibre/gui2/store/stores/publio_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__ = '2012-2013, Tomasz Długosz <tomek3d@gmail.com>'
 
7
__copyright__ = '2012-2014, Tomasz Długosz <tomek3d@gmail.com>'
8
8
__docformat__ = 'restructuredtext en'
9
9
 
10
10
import urllib
64
64
                    price = ''.join(data.xpath('.//div[@class="priceBox tk-museo-slab"]/ins/text()'))
65
65
                    if not price:
66
66
                        price = ''.join(data.xpath('.//div[@class="priceBox tk-museo-slab"]/text()')).strip()
67
 
                    formats = ', '.join(data.xpath('.//div[@class="formats"]/a/img/@alt'))
 
67
                    formats = ', '.join(data.xpath('.//div[@class="formats"]/a/text()'))
68
68
 
69
69
                    counter -= 1
70
70