mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
commit
d6257e76ce
@ -52,10 +52,13 @@ class PublioStore(BasicStoreConfig, StorePlugin):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
cover_url = ''.join(data.xpath('.//div[@class="img"]/a/img/@data-original'))
|
cover_url = ''.join(data.xpath('.//div[@class="img"]/a/img/@data-original'))
|
||||||
title = ''.join(data.xpath('.//div[@class="desc"]/h4/a/text()'))
|
title = ''.join(data.xpath('.//div[@class="img"]/a/@title'))
|
||||||
title2 = ''.join(data.xpath('.//div[@class="desc"]/h5/a/text()'))
|
title2 = ''.join(data.xpath('.//div[@class="desc"]/h5//text()'))
|
||||||
if title2:
|
if title2:
|
||||||
title = title + '. ' + title2
|
title = title + '. ' + title2
|
||||||
|
if (''.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[last()]/span/text()')).strip() == "Seria:"):
|
||||||
|
series = ''.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[last()]/a/@title'))
|
||||||
|
title = title + ' (seria ' + series + ')'
|
||||||
author = ', '.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[@class="row"][1]/a/@title'))
|
author = ', '.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[@class="row"][1]/a/@title'))
|
||||||
price = ''.join(data.xpath('.//div[@class="priceBoxContener "]/div/ins/text()'))
|
price = ''.join(data.xpath('.//div[@class="priceBoxContener "]/div/ins/text()'))
|
||||||
if not price:
|
if not price:
|
||||||
@ -67,8 +70,8 @@ class PublioStore(BasicStoreConfig, StorePlugin):
|
|||||||
s = SearchResult()
|
s = SearchResult()
|
||||||
s.cover_url = 'http://www.publio.pl' + cover_url
|
s.cover_url = 'http://www.publio.pl' + cover_url
|
||||||
s.title = title.strip()
|
s.title = title.strip()
|
||||||
s.author = author.strip()
|
s.author = author
|
||||||
s.price = price.strip()
|
s.price = price
|
||||||
s.detail_item = 'http://www.publio.pl' + id.strip()
|
s.detail_item = 'http://www.publio.pl' + id.strip()
|
||||||
s.drm = SearchResult.DRM_LOCKED if 'DRM' in formats else SearchResult.DRM_UNLOCKED
|
s.drm = SearchResult.DRM_LOCKED if 'DRM' in formats else SearchResult.DRM_UNLOCKED
|
||||||
s.formats = formats.replace(' DRM','').strip()
|
s.formats = formats.replace(' DRM','').strip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user