def _category_and_fandom(soup):
    """
    .. versionadded:: 0.3.0

    Returns the FanFiction category and fandom from the soup.

    * Category is one of nine possible categories from ``['Anime/Manga',
      'Books', 'Cartoons', 'Comics', 'Games', 'Misc', 'Movies',
      'Plays/Musicals', 'TV']``
    * Fandom is the specific sub-category, whereas category may be
     ``Plays/Musicals``, the fandom could be ``RENT``, ``Wicked``, etc.

    :param soup: Soup containing a page from FanFiction.Net
    :type soup: bs4.BeautifulSoup class

    :returns: Tuple where the first item is the category and the second item is
              the fandom.
    :rtype: tuple.

    .. code-block:: python

                    from ffscraper.fanfic.story import __category_and_fandom
                    from bs4 import BeautifulSoup as bs
                    import requests

                    r = requests.get('https://www.fanfiction.net/s/123')
                    html = r.text
                    soup = bs(html, 'html.parser')

                    print(_category_and_fandom(soup))

    .. code-block:: bash

                    ('Plays/Musicals', 'Wicked')
    """

    c_f = soup.find('div', {'id': 'pre_story_links'}).find_all('a', href=True)
    return c_f[0].text, c_f[1].text