mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-26 16:52:46 -04:00
Store: MobileRead plugin, Fix issue with searching with unicode characters.
This commit is contained in:
@@ -44,9 +44,12 @@ 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'
|
||||
|
||||
Reference in New Issue
Block a user