mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
ebookpoint plugin: exclude audiobooks from list of items
This commit is contained in:
parent
8920cf6cae
commit
e96c33b059
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
||||
store_version = 3 # Needed for dynamic plugin loading
|
||||
store_version = 4 # Needed for dynamic plugin loading
|
||||
|
||||
__license__ = 'GPL 3'
|
||||
__copyright__ = '2011-2013, Tomasz Długosz <tomek3d@gmail.com>'
|
||||
@ -60,13 +60,15 @@ class EbookpointStore(BasicStoreConfig, StorePlugin):
|
||||
if not id:
|
||||
continue
|
||||
|
||||
formats = ', '.join(data.xpath('.//div[@class="ikony"]/span/text()'))
|
||||
if formats == 'MP3':
|
||||
continue
|
||||
cover_url = ''.join(data.xpath('.//a[@class="cover"]/img/@src'))
|
||||
title = ''.join(data.xpath('.//h3/a/@title'))
|
||||
title = re.sub('eBook.', '', title)
|
||||
author = ''.join(data.xpath('.//p[@class="author"]//text()'))
|
||||
price = ''.join(data.xpath('.//p[@class="price"]/ins/text()'))
|
||||
|
||||
formats = ', '.join(data.xpath('.//div[@class="ikony"]/span/text()'))
|
||||
|
||||
counter -= 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user