                  idx += 1
                  if idx == self.batchsize:
                      frame_faces = len(item.detected_faces)
                      if f_idx + 1 != frame_faces:
                          self._rollover = ExtractMedia(item.filename, item.image)
                          self._rollover.add_detected_faces(item.detected_faces[f_idx + 1:])
                          logger.trace("Rolled over %s faces of %s to next batch for '%s'",
                                       len(self._rollover.detected_faces), frame_faces,
                                       item.filename)
                      break
          if batch:
 
</s>
                        self._rollover = ExtractMedia(
                            item.filename,
                            item.image,
                            detected_faces=item.detected_faces[f_idx + 1:])
                  idx += 1
                  if idx == self.batchsize:
                      frame_faces = len(item.detected_faces)
                      if f_idx + 1 != frame_faces:
                        self._rollover = ExtractMedia(
                            item.filename,
                            item.image,
                            detected_faces=item.detected_faces[f_idx + 1:])
                        self._rollover = ExtractMedia(
                            item.filename,
                            item.image,
                            detected_faces=item.detected_faces[f_idx + 1:])
                          logger.trace("Rolled over %s faces of %s to next batch for '%s'",
                                       len(self._rollover.detected_faces), frame_faces,
                                       item.filename)
                      break
          if batch:
keep keep keep keep replace replace keep keep keep keep keep
 Bugfix - Manual tool. Use new ExtractMedia class
plugins/extract/mask/_base.py