Skip to content

Commit

Permalink
Update indexes after deleting lines
Browse files Browse the repository at this point in the history
The function clean_indexes should be called to trigger a re-indexing according to byroot/pysrt#57 .
  • Loading branch information
hashangayasri authored Sep 26, 2020
1 parent bfe1a35 commit a2ac148
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subscleaner
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,6 @@ if __name__ == '__main__':
del subs[i]
modified = True
if modified:
subs.clean_indexes()
move(filename, filename+'.bak')
subs.save(filename)

0 comments on commit a2ac148

Please sign in to comment.