Disable Edelweiss searches as they return garbage results

This commit is contained in:
Kovid Goyal 2018-04-06 07:27:14 +05:30
parent 19ca524e47
commit a4eba954e8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -193,7 +193,7 @@ def get_basic_data(browser, log, *skus):
class Edelweiss(Source): class Edelweiss(Source):
name = 'Edelweiss' name = 'Edelweiss'
version = (2, 0, 0) version = (2, 0, 1)
minimum_calibre_version = (3, 6, 0) minimum_calibre_version = (3, 6, 0)
description = _('Downloads metadata and covers from Edelweiss - A catalog updated by book publishers') description = _('Downloads metadata and covers from Edelweiss - A catalog updated by book publishers')
@ -270,6 +270,8 @@ class Edelweiss(Source):
if 'edelweiss' in identifiers: if 'edelweiss' in identifiers:
items = [identifiers['edelweiss']] items = [identifiers['edelweiss']]
else: else:
log.error('Currently Edelweiss returns random books for search queries')
return
query = self.create_query(log, title=title, authors=authors, query = self.create_query(log, title=title, authors=authors,
identifiers=identifiers) identifiers=identifiers)
if not query: if not query: