          self.items = self.load_items()
          logger.verbose("%s items loaded", self.count)
          logger.debug("Initialized %s", self.__class__.__name__)
  
      @property
      def count(self):
          """ Number of faces or frames """
          if self.is_video:
              retval = int(im_ffm.count_frames_and_secs(self.folder)[0])
 
</s> remove         if self.vid_reader is not None:
 </s> add         if self.is_video: </s> remove         folder_name = "{}_{}".format(self.output_message.replace(" ", "_").lower(), now)
        output_folder = os.path.join(self.source_dir, folder_name)
 </s> add         folder_name = "{}{}_{}".format(self.get_filename_prefix,
                                       self.output_message.replace(" ", "_").lower(), now)
        dst_dir = self.get_output_folder()
        output_folder = os.path.join(dst_dir, folder_name)
    @property
    def is_video(self):
        """ Return whether source is a video or not """
        return self.vid_reader is not None

          self.items = self.load_items()
          logger.verbose("%s items loaded", self.count)
          logger.debug("Initialized %s", self.__class__.__name__)
  
    @property
    def is_video(self):
        """ Return whether source is a video or not """
        return self.vid_reader is not None

      @property
      def count(self):
          """ Number of faces or frames """
          if self.is_video:
              retval = int(im_ffm.count_frames_and_secs(self.folder)[0])
keep keep keep add keep keep keep keep keep
 Fix output for alignments tool tasks when input is a video 
tools/lib_alignments/media.py