def METHOD_NAME(self, item):
    title = item.get(self.titleTAG, "").replace(" ", ".")
    attempt_list = [lambda: item.get("torrent_magneturi"), lambda: item.enclosures[0].href, lambda: item.get("link")]
    url = None
    for cur_attempt in attempt_list:
        try:
            url = cur_attempt()
        except Exception:
            continue
        if title and url:
            break
    return title, url