def __init__(self): self.live_searches = [] for item_cfg in configloader.get()['item-filters']: identifier = self.get_identifier(item_cfg) if not identifier: continue self.live_searches.append(LiveSearch(identifier))
def setup(clear=False): global retrievers, scheduler if clear: retrievers = [] for item_config in configloader.get()['item-filters']: retrievers.append(ListingRetriever(item_config)) scheduler = BlockingScheduler() scheduler.add_job(run_refreshes, 'interval', id='scheduler_task', seconds=5, next_run_time=datetime.datetime.now()) scheduler.start()
def get_config_color(msg_type): return configloader.get()['general-config']['colors'][msg_type]
def POESESSID(): return configloader.get()['general-config']['POESESSID']
def should_display(ign): if find(ign): return configloader.get()['general-config']['display-blocked'] return True