cdp plugin: dropping items by link is obsolete now

This commit is contained in:
Tomasz Długosz 2016-01-06 01:06:22 +01:00
parent 6c9d568b7f
commit 3c239dfc83

View File

@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
from __future__ import (unicode_literals, division, absolute_import, print_function)
store_version = 7 # Needed for dynamic plugin loading
store_version = 8 # Needed for dynamic plugin loading
__license__ = 'GPL 3'
__copyright__ = '2013-2015, Tomasz Długosz <tomek3d@gmail.com>'
__copyright__ = '2013-2016, Tomasz Długosz <tomek3d@gmail.com>'
__docformat__ = 'restructuredtext en'
import urllib
@ -59,8 +59,6 @@ class CdpStore(BasicStoreConfig, StorePlugin):
id = ''.join(data.xpath('.//a[@class="product-image"]/@href'))
if not id:
continue
if 'ksiazki' not in id:
continue
cover_url = ''.join(data.xpath('.//a[@class="product-image"]/img/@data-src'))
title = ''.join(data.xpath('.//h3[1]/a/@title'))