If using hls_list_size together with program_date_time the EXT-X-PROGRAM-DATE-TIME tags start to become wrong when segments are removed. initial_prog_date_time should probably be incremented by the duration of the segments removed.