hls: simplify playlist type check