If it helps to replicate,
Code:
program:
if
str_in_list($tags, ',', '[Cleanup]', 1, '')
then
list_difference($tags,'[Cleanup]' , ',')
else
list_union($tags,'[Cleanup]' , ',')
fi
to remove Cleanup, followed by
Code:
from calibre_plugins.action_chains.actions.base import ChainAction
class RefreshAction(ChainAction):
name = 'Refresh GUI'
def run(self, gui, settings, chain):
gui.current_db.data.refresh()
gui.library_view.model().resort()