mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: MobileRead plugin, Fix issue with searching with unicode characters.
This commit is contained in:
parent
beea6bcd11
commit
7fc7d7487c
@ -45,8 +45,11 @@ class MobileReadStore(BasicStoreConfig, StorePlugin):
|
||||
def search(self, query, max_results=10, timeout=60):
|
||||
books = self.get_book_list()
|
||||
|
||||
if not books:
|
||||
return
|
||||
|
||||
sf = SearchFilter(books)
|
||||
matches = sf.parse(query)
|
||||
matches = sf.parse(query.decode('utf-8', 'replace'))
|
||||
|
||||
for book in matches:
|
||||
book.price = '$0.00'
|
||||
|
Loading…
x
Reference in New Issue
Block a user