This commit is contained in:
Kovid Goyal 2011-11-29 18:39:51 +05:30
commit 8d019b4267
2 changed files with 8 additions and 2 deletions

View File

@ -1531,7 +1531,7 @@ class StoreWoblinkStore(StoreBase):
actual_plugin = 'calibre.gui2.store.stores.woblink_plugin:WoblinkStore'
headquarters = 'PL'
formats = ['EPUB']
formats = ['EPUB', 'PDF', 'WOBLINK']
class XinXiiStore(StoreBase):
name = 'XinXii'

View File

@ -61,6 +61,12 @@ class WoblinkStore(BasicStoreConfig, StorePlugin):
price = ''.join(data.xpath('.//div[@class="prices"]/p[1]/span/text()'))
price = re.sub('PLN', '', price)
price = re.sub('\.', ',', price)
formats = ', '.join(data.xpath('.//p[3]/img/@src'))
formats = formats[8:-4].upper()
if formats == 'EPUB':
formats = 'WOBLINK'
if 'E Ink' in data.xpath('.//div[@class="prices"]/img/@title'):
formats += ', EPUB'
counter -= 1
@ -71,6 +77,6 @@ class WoblinkStore(BasicStoreConfig, StorePlugin):
s.price = price
s.detail_item = id.strip()
s.drm = SearchResult.DRM_LOCKED
s.formats = 'EPUB'
s.formats = formats
yield s