def parse_releases(list):
    """
    Parse releases from a MangaUpdate's search results page.

    Parameters
    ----------
    list : BeautifulSoup
        BeautifulSoup object of the releases section of the search page.

    Returns
    -------
    releases : list of dicts
        List of recent releases found by the search.
        ::

            [
                {
                    'id': 'Series Id',
                    'name': 'Series name',
                    'chp': 'chapter number',
                    'vol': 'number' or None,
                    'date': '02/21/21', # Date in month/day/year
                    'group': {
                        'name': 'Scanlation Group',
                        'id': 'Scanlation Group Id'
                    }
                }
            ]
    """
    releases = list.find_all("div", class_="text")[:-1]
    results = []

    for i in range(0, len(releases), 5):
        release = {}

        release["date"] = str(releases[i].string)

        series_link = releases[i + 1]
        if series_link.a is None:
            release["name"] = str(series_link.string)
        else:
            release["name"] = str(series_link.a.string)
            release["id"] = series_link.a["href"].replace(
                "https://www.mangaupdates.com/series.html?id=", ""
            )

        vol = releases[i + 2].get_text()
        release["vol"] = vol if vol else None
        release["chp"] = str(releases[i + 3].string)
        release["group"] = {
            "name": releases[i + 4].get_text(),
            "id": releases[i + 4]
            .a["href"]
            .replace("https://www.mangaupdates.com/groups.html?id=", ""),
        }

        results.append(release)

    return results