def clear(token): # type: (str) -> None """Clear cached or recently played items""" if token == "cache" and ku.confirm(): iwm.cache_clear() if token == "recent" and ku.confirm(): iwm.cache_clear()
def clear(idx): # type: (str) -> None """Clear cached or recently played items""" if idx == "cache" and ku.confirm(): dws.cache_clear() elif idx == "recent" and ku.confirm(): dws.recents.clear() elif idx == "search" and ku.confirm(): dws.searches.clear()
def clear(token): if token == "cache" and ku.confirm(): bcfs.cache_clear()
def clear(token): if token == "cache" and ku.confirm(): eafa.cache_clear()
def clear(id): if id == "cache" and ku.confirm(): bfis.cache_clear() if id == "recent" and ku.confirm(): bfis.recent_clear()
def clear(token): if token == "cache" and ku.confirm(): jafc.cache_clear() if token == "recent" and ku.confirm(): jafc.recent_clear()