          """ Set the correct items to process """
          items = globals()[self.type.title()]
          return items(self.source_dir).file_list_sorted
  
      def process(self):
          """ Process the frames check against the alignments file """
 
</s> remove         iterator = self.process_video if self.vid_reader is not None else self.process_frames
 </s> add         iterator = self.process_video if self.is_video else self.process_frames </s> remove         filename = "{}_{}.txt".format(self.output_message.replace(" ", "_").lower(), now)
        output_file = os.path.join(self.source_dir, filename)
 </s> add         dst_dir = self.get_output_folder()
        filename = "{}{}_{}.txt".format(self.get_filename_prefix(),
                                        self.output_message.replace(" ", "_").lower(),
                                        now)
        output_file = os.path.join(dst_dir, filename) </s> remove         if self.frames.vid_cap:
            dest_folder = os.path.split(self.frames.folder)[0]
 </s> add         if self.frames.is_video:
            dest_folder = os.path.dirname(self.frames.folder)
        self.is_video = items.is_video
          """ Set the correct items to process """
          items = globals()[self.type.title()]
        self.is_video = items.is_video
          return items(self.source_dir).file_list_sorted
  
      def process(self):
          """ Process the frames check against the alignments file """
keep add keep keep keep keep
 Fix output for alignments tool tasks when input is a video 
tools/lib_alignments/jobs.py