def guard_top_only(): """ Callback for change of top_only option """ NzbQueue.do.set_top_only(cfg.top_only())
def __init__(self): self.__top_only = cfg.top_only() self.__nzo_list = [] self.__nzo_table = {} NzbQueue.do = self
def __init__(self): self.__top_only: bool = cfg.top_only() self.__nzo_list: List[NzbObject] = [] self.__nzo_table: Dict[str, NzbObject] = {}