mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 21:15:09 +01:00
Comments.
This commit is contained in:
parent
6d5d638fe3
commit
dd2c856dc0
1 changed files with 11 additions and 0 deletions
|
|
@ -597,6 +597,17 @@ def open(self, parent=None, start_item=None):
|
|||
raise NotImplementedError()
|
||||
|
||||
def search(self, query, max_results=10, timeout=60):
|
||||
'''
|
||||
Searches the store for items matching query. This should
|
||||
return items as a generator.
|
||||
|
||||
:param query: The string query search with.
|
||||
:param max_results: The maximum number of results to return.
|
||||
:param timeout: The maximum amount of time in seconds to spend download the search results.
|
||||
|
||||
:return: A tuple (cover_url, title, author, price, start_item). The start_item is plugin
|
||||
specific and is used in :meth:`open` to open to a specifc place in the store.
|
||||
'''
|
||||
raise NotImplementedError()
|
||||
|
||||
# }}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue