def _forceMagSearch(self, **kwargs): if lazylibrarian.USE_NZB() or lazylibrarian.USE_TOR() or lazylibrarian.USE_RSS(): if 'wait' in kwargs: search_magazines(None, True) else: threading.Thread(target=search_magazines, name='API-SEARCHMAGS', args=[None, True]).start() else: self.data = 'No search methods set, check config'