def METHOD_NAME(host):
    """
    Retrieves the settings from a NMJ/Popcorn hour
    host: The hostname/IP of the Popcorn Hour server
    Returns: True if the settings were retrieved successfully, False otherwise
    """
    # establish a terminal session to the PC
    try:
        terminal = telnetlib.Telnet(host)
    except Exception:
        logger.warning("Warning: unable to get a telnet session to {0}".format(host))
        return False
    # tell the terminal to output the necessary info to the screen so we can search it later
    logger.debug("Connected to {0} via telnet".format(host))
    terminal.read_until("sh-3.00# ")
    terminal.write("cat /tmp/source\n")
    terminal.write("cat /tmp/netshare\n")
    terminal.write("exit\n")
    tnoutput = terminal.read_all()
    match = re.search(r"(.+\.db)\r\n?(.+)(?=sh-3.00# cat /tmp/netshare)", tnoutput)
    # if we found the database in the terminal output then save that database to the config
    if match:
        database = match.group(1)
        device = match.group(2)
        logger.debug("Found NMJ database {0} on device {1}".format(database, device))
        settings.NMJ_DATABASE = database
    else:
        logger.warning("Could not get current NMJ database on {0}, NMJ is probably not running!".format(host))
        return False
    # if the device is a remote host then try to parse the mounting URL and save it to the config
    if device.startswith("NETWORK_SHARE/"):
        match = re.search(".*(?=\r\n?{0})".format((re.escape(device[14:]))), tnoutput)
        if match:
            mount = match.group().replace("127.0.0.1", host)
            logger.debug("Found mounting url on the Popcorn Hour in configuration: {0}".format(mount))
            settings.NMJ_MOUNT = mount
        else:
            logger.warning("Detected a network share on the Popcorn Hour, but could not get the mounting url")
            return False
    return True