Fix HLS uploader logic