mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
cdp plugin: dropping items by link is obsolete now
This commit is contained in:
parent
6c9d568b7f
commit
3c239dfc83
@ -1,10 +1,10 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
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'
|
__license__ = 'GPL 3'
|
||||||
__copyright__ = '2013-2015, Tomasz Długosz <tomek3d@gmail.com>'
|
__copyright__ = '2013-2016, Tomasz Długosz <tomek3d@gmail.com>'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import urllib
|
import urllib
|
||||||
@ -59,8 +59,6 @@ class CdpStore(BasicStoreConfig, StorePlugin):
|
|||||||
id = ''.join(data.xpath('.//a[@class="product-image"]/@href'))
|
id = ''.join(data.xpath('.//a[@class="product-image"]/@href'))
|
||||||
if not id:
|
if not id:
|
||||||
continue
|
continue
|
||||||
if 'ksiazki' not in id:
|
|
||||||
continue
|
|
||||||
|
|
||||||
cover_url = ''.join(data.xpath('.//a[@class="product-image"]/img/@data-src'))
|
cover_url = ''.join(data.xpath('.//a[@class="product-image"]/img/@data-src'))
|
||||||
title = ''.join(data.xpath('.//h3[1]/a/@title'))
|
title = ''.join(data.xpath('.//h3[1]/a/@title'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user