def extract_quoted(p_string, p_delim=b'"'):
    """
    Used by play list extracting in pandora module.

    Discard characters before first p_delim
    extract chars between p_delim chars
    return all chars after second p_delim
    """
    l_string = p_string
    l_1st = l_string.find(p_delim)
    l_2nd = l_string.find(p_delim, l_1st + 1)
    l_string = p_string[l_1st + 1:l_2nd].decode('utf-8')
    l_rest = p_string[l_2nd + 1:]
    return l_string, l_rest