View Single Post
Old 12-21-2021, 05:30 AM   #21
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,092
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
Refresh current search

Quote:
Originally Posted by ownedbycats View Post
Question: Can Selection Modifier be used to re-do the currently existing search, regardless of what it is? Mostly to remove now-invalid entries from the search after changing metadata - resorting doesn't do this.
Code:
from calibre_plugins.action_chains.actions.base import ChainAction

class RefreshSearch(ChainAction):

    name = 'Refresh Current Search'

    def run(self, gui, settings, chain):
        gui.search.do_search()
capink is offline   Reply With Quote