              if not self.valid_extension(face):
                  continue
              filename = os.path.splitext(face)[0]
              file_extension = os.path.splitext(face)[1]
              index = int(filename[filename.rindex("_") + 1:])
              original_file = "{}".format(filename[:filename.rindex("_")])
              yield {"face_fullname": face,
                     "face_name": filename,
                     "face_extension": file_extension,
                     "frame_name": original_file,
                     "face_index": index}
 
</s> remove             top_left, top_right  = original_roi[0], original_roi[3]
 </s> add             top_left, top_right = original_roi[0], original_roi[3] </s> remove                                self.verbose)
 </s> add                                self.verbose,
                               dfl=True) </s> remove                 else:
                    dfl.seek(chunk_length+12, os.SEEK_CUR)
 </s> add                 dfl.seek(chunk_length+12, os.SEEK_CUR) </s> remove         return bool(number_alignments == 0
                    or number_alignments == number_faces)
 </s> add         return bool(number_alignments in(0, number_faces))
            index = 0
            original_file = ""
            if not self.dfl:
                index = int(filename[filename.rindex("_") + 1:])
                original_file = "{}".format(filename[:filename.rindex("_")])
              if not self.valid_extension(face):
                  continue
              filename = os.path.splitext(face)[0]
              file_extension = os.path.splitext(face)[1]
            index = 0
            original_file = ""
            if not self.dfl:
                index = int(filename[filename.rindex("_") + 1:])
                original_file = "{}".format(filename[:filename.rindex("_")])
            index = 0
            original_file = ""
            if not self.dfl:
                index = int(filename[filename.rindex("_") + 1:])
                original_file = "{}".format(filename[:filename.rindex("_")])
              yield {"face_fullname": face,
                     "face_name": filename,
                     "face_extension": file_extension,
                     "frame_name": original_file,
                     "face_index": index}
keep keep keep keep replace replace keep keep keep keep keep
 Alignments Tool - Fix DFL Index bug (#526)

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