def METHOD_NAME(self, task, entry, config=None):
    """
    Search for name from torrentday.
    """
    categories = config.get('category', 'all')
    # Make sure categories is a list
    if not isinstance(categories, list):
        categories = [categories]
    # If there are any text categories, turn them into their id number
    categories = [c if isinstance(c, int) else CATEGORIES[c] for c in categories]
    params = {'cata': 'yes', 'clear-new': 1}
    params.update({str(c): 1 for c in categories})
    entries = set()
    for search_string in entry.get('search_strings', [entry['title']]):
        url = 'https://www.torrentday.com/t'
        params['q'] = normalize_unicode(search_string).replace(':', '')
        cookies = {
            'uid': str(config['uid']),
            'pass': config['passkey'],
            '__cfduid': config['cfduid'],
        }
        try:
            page = requests.get(url, params=params, cookies=cookies).content
        except RequestException as e:
            raise PluginError(f'Could not connect to torrentday: {e}')
        # the following should avoid table being None due to a malformed
        # html in td search results
        soup = get_soup(page).contents[1].contents[1].contents[1].next.nextSibling
        table = soup.find('table', {'id': 'torrentTable'})
        if table is None:
            raise PluginError(
                'Search returned by torrentday appears to be empty or malformed.'
            )
        # the first row is the header so skip it
        for tr in table.find_all('tr')[1:]:
            entry = Entry()
            # find the torrent names
            td = tr.find('td', {'class': 'torrentNameInfo'})
            if not td:
                logger.warning('Could not find entry torrentNameInfo for {}.', search_string)
                continue
            title = td.find('a')
            if not title:
                logger.warning('Could not determine title for {}.', search_string)
                continue
            entry['title'] = title.contents[0]
            logger.debug('title: {}', title.contents[0])
            # find download link
            torrent_url = tr.find('td', {'class': 'ac'})
            if not torrent_url:
                logger.warning('Could not determine download link for {}.', search_string)
                continue
            torrent_url = torrent_url.find('a').get('href')
            # construct download URL
            torrent_url = (
                'https://www.torrentday.com/'
                + torrent_url
                + '?torrent_pass='
                + config['rss_key']
            )
            logger.debug('RSS-ified download link: {}', torrent_url)
            entry['url'] = torrent_url
            # us tr object for seeders/leechers
            seeders = tr.find('td', {'class': 'ac seedersInfo'})
            leechers = tr.find('td', {'class': 'ac leechersInfo'})
            entry['torrent_seeds'] = int(seeders.contents[0].replace(',', ''))
            entry['torrent_leeches'] = int(leechers.contents[0].replace(',', ''))
            entry['torrent_availability'] = torrent_availability(
                entry['torrent_seeds'], entry['torrent_leeches']
            )
            # use tr object for size
            size = tr.find('td', text=re.compile(r'([\.\d]+) ([TGMKk]?)B')).contents[0]
            size = re.METHOD_NAME(r'([\.\d]+) ([TGMKk]?)B', str(size))
            entry['content_size'] = parse_filesize(size.group(0))
            entries.add(entry)
    return sorted(entries, reverse=True, key=lambda x: x.get('torrent_availability'))