mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 04:23:00 +02:00
do not list not avaliable items from ebookpoint
This commit is contained in:
parent
98edef50ae
commit
73bf711895
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import (unicode_literals, division, absolute_import, print_function)
|
||||
store_version = 4 # Needed for dynamic plugin loading
|
||||
store_version = 5 # Needed for dynamic plugin loading
|
||||
|
||||
__license__ = 'GPL 3'
|
||||
__copyright__ = '2011-2013, Tomasz Długosz <tomek3d@gmail.com>'
|
||||
|
|
@ -61,7 +61,7 @@ def search(self, query, max_results=25, timeout=60):
|
|||
continue
|
||||
|
||||
formats = ', '.join(data.xpath('.//div[@class="ikony"]/span/text()'))
|
||||
if formats == 'MP3':
|
||||
if formats in ['MP3','']:
|
||||
continue
|
||||
cover_url = ''.join(data.xpath('.//a[@class="cover"]/img/@src'))
|
||||
title = ''.join(data.xpath('.//h3/a/@title'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue