def add_to_saved(all_title, show_url, image): with common.busy_indicator(): sl = _get_saved_list() sl.insert(0, (all_title, show_url, image)) uniq = set() sl = [x for x in sl if not (x in uniq or uniq.add(x))] store.put(_saved_list_key, sl) common.popup(xbmcaddon.Addon().getLocalizedString(33302))
def add_to_saved(eng_name, ori_name, show_url, image): with common.busy_indicator(): sl = _get_saved_list() sl.insert(0, (eng_name, ori_name, show_url, image)) uniq = set() sl = [x for x in sl if not (x in uniq or uniq.add(x))] store.put(_saved_list_key, sl) common.popup(xbmcaddon.Addon().getLocalizedString(33302))
def add_to_saved(eng_name, ori_name, show_url, image): with common.busy_indicator(): sl = _get_saved_list() sl.insert(0, (eng_name, ori_name, show_url, image)) uniq = set() sl = [x for x in sl if not (x in uniq or uniq.add(x))] store.put(_saved_list_key, sl) common.popup(loc.getLocalizedString(33302))
def remove_saved(all_title, show_url, image): sl = _get_saved_list() sl.remove((all_title, show_url, image)) store.put(_saved_list_key, sl) common.refresh() common.popup(xbmcaddon.Addon().getLocalizedString(33303))
def remove_saved(eng_name, ori_name, show_url, image): sl = _get_saved_list() sl.remove((eng_name, ori_name, show_url, image)) store.put(_saved_list_key, sl) common.refresh() common.popup(xbmcaddon.Addon().getLocalizedString(33303))
def remove_saved(eng_name, ori_name, show_url, image): sl = _get_saved_list() sl.remove((eng_name, ori_name, show_url, image)) store.put(_saved_list_key, sl) common.refresh() common.popup(loc.getLocalizedString(33303))