mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 13:24:27 +01:00
Improvements for e-knigi store search
This commit is contained in:
parent
28d4a74d4c
commit
0c72fca935
1 changed files with 2 additions and 2 deletions
|
|
@ -46,9 +46,9 @@ def open(self, parent=None, detail_item=None, external=False):
|
|||
d.exec_()
|
||||
|
||||
def search(self, query, max_results=10, timeout=60):
|
||||
# check for cyrilic symbols before performing search
|
||||
# check for cyrillic symbols before performing search
|
||||
uquery = unicode(query.strip(), 'utf-8')
|
||||
reObj = re.search(u'^[а-яА-Я\\d]{2,}[а-яА-Я\\d\\s]*$', uquery)
|
||||
reObj = re.search(u'^[а-яА-Я\\d\\s]{2,}$', uquery)
|
||||
if not reObj:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue