mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 12:43:38 +02:00
Fix ISBNdb plugin not handling non ascii queries
This commit is contained in:
parent
88aca5bfa8
commit
107912f63f
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ def create_query(self, title=None, authors=None, identifiers={}): # {{{
|
|||
author_tokens = self.get_author_tokens(authors,
|
||||
only_first_author=True)
|
||||
tokens += author_tokens
|
||||
tokens = [quote(t) for t in tokens]
|
||||
tokens = [quote(t.encode('utf-8') if isinstance(t, unicode) else t) for t in tokens]
|
||||
q = '+'.join(tokens)
|
||||
q = 'index1=combined&value1='+q
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue