[bild] Make more robust and improve hls extraction