mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix CLI bug with opts.search_text = None
This commit is contained in:
parent
f4865b39de
commit
99abeff636
@ -758,7 +758,10 @@ class EPUB_MOBI(CatalogPlugin):
|
||||
if self.opts.ids:
|
||||
self.opts.search_text = search_phrase
|
||||
else:
|
||||
self.opts.search_text = self.opts.search_text + " " + search_phrase
|
||||
if self.opts.search_text:
|
||||
self.opts.search_text += " " + search_phrase
|
||||
else:
|
||||
self.opts.search_text = search_phrase
|
||||
|
||||
# Fetch the database as a dictionary
|
||||
data = self.plugin.search_sort_db(self.db, self.opts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user