def METHOD_NAME(self, task, entry):
    """
    Resets the entry's url to one pointing directly at a torrent.
    """
    if 'url' not in entry:
        logger.error("Didn't actually get a URL...")
    else:
        logger.debug('Got the URL: {}', entry['url'])
    if entry['url'].startswith(SEARCH_URL):
        # use search
        results = self.search(task, entry)
        if not results:
            raise UrlRewritingError("No search results found")
        # TODO: Search doesn't enforce close match to title, be more picky
        entry['url'] = results[0]['url']