'add a task based on task_name'

def add_a_task(self, task_name, task_content):

    if ((task_name == TPEnum.URL_FETCH) and ((task_content[(-1)] > 0) or (not self._url_filter) or self._url_filter.check_and_add(task_content[1]))):
        self._fetch_queue.put_nowait(task_content)
        self.update_number_dict(TPEnum.URL_NOT_FETCH, (+ 1))
    elif (task_name == TPEnum.HTM_PARSE):
        self._parse_queue.put_nowait(task_content)
        self.update_number_dict(TPEnum.HTM_NOT_PARSE, (+ 1))
    elif (task_name == TPEnum.ITEM_SAVE):
        self._save_queue.put_nowait(task_content)
        self.update_number_dict(TPEnum.ITEM_NOT_SAVE, (+ 1))
    return
