hls: simplify parsing of source