if icy_metaint_header is not None:
    metaint = int(icy_metaint_header)
read_buffer = metaint + 255
content = response.read(read_buffer)
title = content[metaint:].split("'")[1]
Reading SHOUTcast/Icecast metadata from a radio stream with Python