def METHOD_NAME(self, task, entry):
    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('https://www.torrentday.com/browse'):
        # use search
        results = self.search(task, entry)
        if not results:
            raise UrlRewritingError('No search results found')
        entry['url'] = results[0]['url']