  
  class Faces(MediaLoader):
      """ Object to hold the faces that are to be swapped out """
  
      def process_folder(self):
          """ Iterate through the faces dir pulling out various information """
          print("Loading file list from {}".format(self.folder))
          for face in os.listdir(self.folder):
              if not self.valid_extension(face):
 
</s> remove         return bool(number_alignments == 0
                    or number_alignments == number_faces)
 </s> add         return bool(number_alignments in(0, number_faces)) </s> remove                 else:
                    dfl.seek(chunk_length+12, os.SEEK_CUR)
 </s> add                 dfl.seek(chunk_length+12, os.SEEK_CUR) </s> remove                                self.verbose)
 </s> add                                self.verbose,
                               dfl=True) </s> remove             index = int(filename[filename.rindex("_") + 1:])
            original_file = "{}".format(filename[:filename.rindex("_")])
 </s> add             index = 0
            original_file = ""
            if not self.dfl:
                index = int(filename[filename.rindex("_") + 1:])
                original_file = "{}".format(filename[:filename.rindex("_")]) </s> remove             top_left, top_right  = original_roi[0], original_roi[3]
 </s> add             top_left, top_right = original_roi[0], original_roi[3]
    def __init__(self, folder, verbose, dfl=False):
        self.dfl = dfl
        super().__init__(folder, verbose)
  
  class Faces(MediaLoader):
      """ Object to hold the faces that are to be swapped out """
    def __init__(self, folder, verbose, dfl=False):
        self.dfl = dfl
        super().__init__(folder, verbose)
  
      def process_folder(self):
          """ Iterate through the faces dir pulling out various information """
          print("Loading file list from {}".format(self.folder))
          for face in os.listdir(self.folder):
              if not self.valid_extension(face):
keep keep add keep keep keep keep keep keep
 Alignments Tool - Fix DFL Index bug (#526)

* Alignments tool. Fix DFL Alignments index bug 
tools/lib_alignments/media.py