This is identical to `parse_m3u`.